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

Header - Add authenticated user organization in hidden fields #5288

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mdouchin
Copy link
Collaborator

@mdouchin mdouchin commented Jan 29, 2025

This allows a JavaScript script to get the current user organization and use it in the editing form.

Ticket : #

Funded by Ville d'Avignon https://cartes.mairie-avignon.com

@mdouchin
Copy link
Collaborator Author

cc @sigavignon

@Gustry Gustry added sponsored development This development has been funded run end2end If the PR must run end2end tests or not labels Jan 29, 2025
@Gustry
Copy link
Member

Gustry commented Jan 29, 2025

Tests added ;-)

Linked to #3963 and #3960

@mdouchin
Copy link
Collaborator Author

@Gustry thanks a lot for the tests. Do you think we should also add other fields (city, postcode, etc.) ?

@Gustry
Copy link
Member

Gustry commented Jan 29, 2025

If more are added, I would prefer something cleaner (and revert your change in the first commit), using data attributes ?

I'm curious what other websites do ? Do they expose all "sensible" data into the frontend ? (with extensions, plugins ...)

@rldhont
Copy link
Collaborator

rldhont commented Jan 29, 2025

@mdouchin this data could be exposed through jsvars, like dataviz, action, filter, isn't it ?

@Gustry
Copy link
Member

Gustry commented Jan 29, 2025

Way more comfortable to use

@Gustry Gustry force-pushed the mdouchin-headermenu-add-organization-in-hidden-fields branch from 8fc5cfe to 0513e4e Compare February 4, 2025 12:29
mdouchin and others added 2 commits February 5, 2025 12:24
This allows a JavaScript script to get the current user organization and use it in the editing form.
@Gustry Gustry force-pushed the mdouchin-headermenu-add-organization-in-hidden-fields branch from 0513e4e to 9c444a5 Compare February 5, 2025 11:24
Copy link

github-actions bot commented Feb 5, 2025

Read only

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
24 24 0 0 0 0 1 38.8s

Flaky Tests

Flaky Tests 🍂 Retries
🍂 Axis Orientation NEU for EPSG:3044 1

Github Test Reporter

🔄 This comment has been updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_8 backport release_3_9 run end2end If the PR must run end2end tests or not sponsored development This development has been funded
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants