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

Use beta admin as default #621

Merged
merged 9 commits into from
Feb 5, 2025
Merged

Conversation

nicolaskempf57
Copy link
Contributor

@nicolaskempf57 nicolaskempf57 commented Dec 12, 2024

See datagouv/front-end#207 for the same on front-end side

Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

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

🚀 👏

Do we want to modify all the other links pointing to the administration (edit button, etc.) as well?

@@ -109,6 +109,20 @@ def in_url(*args, **kwargs):
)


@front.app_template_global()
def beta_admin_url_for(path, fallback_path, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

We're missing some routes. They have been documented in datagouv/data.gouv.fr#1648 and can be added in future iterations.

Membership Request notification @

url_for('admin.index', path='organization/{id}/'.format(id=org.id), _anchor='membership-requests', _external=True)
are actually not used. I think udata's templates are used and I guess we can't rely on beta_admin_url_for there. Let's ignore it for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I think we'll have to work on the mailing system at some point because it was not thought with this usecase in mind.

@nicolaskempf57 nicolaskempf57 merged commit 797f14d into master Feb 5, 2025
14 checks passed
@nicolaskempf57 nicolaskempf57 deleted the feat/beta-admin-as-default branch February 5, 2025 15:51
nicolaskempf57 added a commit to datagouv/front-end that referenced this pull request Feb 5, 2025
Also use non-deprecated function from datagouv/components

See datagouv/udata-front#621 on udata-front side

Co-authored-by: maudetes <[email protected]>
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