-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat/AB#80877_add_logic_to_create_edit_load_page_with_geographic_context #860
base: feat/AB#80876-add-geographic-context-in-page
Are you sure you want to change the base?
Conversation
….com-relief:ReliefApplications/ems-backend into feat/AB#80877_add_logic_to_create_edit_load_page_with_geographic_context
fix: avoid the possibility of saving both region and country properties as they are mutually exclusive
refactor: context property build for the dashboard object in order to delete all unecessary lines of code
if (get(item, 'record')) { | ||
uniqueEntries.add((item as any).record.toString()); | ||
|
||
if ('geographic' in entry && 'geography') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @RenzoPrats , this is the only thing that I don't get, why set && 'geography'
in the condition, that is always true right? Is it necessary?
Besides that looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @unai-reliefapp, indeed it was useless I think I misspelled it, it's already fixed, thank you!
Description
Feat: Added logic to create/edit and load page with a specific geographic context.
Useful links
ticket
frontend
Type of change
How Has This Been Tested?
It has been tested setting up a geographic context and verifying if it's created a dashboard when we don't have one for this context and if it's loaded when we have one for this context, also tested with resource/referenceData context at the same time that geographic is enabled.
Screenshots
Checklist:
( * == Mandatory )