Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨(dimail) get domain specification for DNS config #722

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sdemagny
Copy link
Contributor

@sdemagny sdemagny commented Feb 12, 2025

Call dimail to get all the DNS configuration values to make an external domain work.

TODO:

  • appeler le spec seulement si l'état est en action requise
  • rajouter des tests back avec des valeurs de spec
  • rajouter un test front sur la modal qui s'affiche et le contenu
  • renommer spec en expected_config ?
  • rajouter word-break: break-all;
  • copier les valeurs
  • tests à corriger !

Premier jet en attente d'une maquette de cette page:

Capture d’écran 2025-02-14 à 09 10 19

Il reste un comportement bizarre avec le toaster il ne se met pas en premier plan avec la modal affichée.
Un fix à faire sur cunningham un jour peut être (@elvoisin)

@sdemagny sdemagny force-pushed the sdem/spec branch 8 times, most recently from 14261aa to 7440711 Compare February 13, 2025 21:54
@sdemagny sdemagny self-assigned this Feb 13, 2025
@sdemagny sdemagny marked this pull request as ready for review February 13, 2025 22:07
@sdemagny
Copy link
Contributor Author

Je n'ai pas tout à fait fini les tests... la review peut un peu attendre

@sdemagny sdemagny force-pushed the sdem/spec branch 8 times, most recently from 581fe50 to 7f3650f Compare February 14, 2025 14:03
@sdemagny sdemagny requested review from qbey and elvoisin February 14, 2025 14:17
@sdemagny
Copy link
Contributor Author

sdemagny commented Feb 14, 2025

J'ai 3 commits à la fin qui seront squashé si c'est ok, qui correspondent à du renommage. Je préfère les laisser comme ça si suite à la review c'était mieux la première version

"""Return expected config of the domain."""
if domain.status == enums.MailDomainStatusChoices.ACTION_REQUIRED:
client = DimailAPIClient()
return client.get_domain_expected_config(domain)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we want a call to be triggered everytime + on list view it will be chaos.

@sdemagny sdemagny force-pushed the sdem/spec branch 2 times, most recently from 954d060 to 602e803 Compare February 14, 2025 17:33
Add missing migration after define ordering by created_at
for Mailbox, MailDomain and MailDomainAccess by created_at.
Call dimail to get all the DNS configuration values
to make an external domain work and save it in our db.
Add the value to serializer for displaying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants