-
Notifications
You must be signed in to change notification settings - Fork 1
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
feature: yes/no site_name (hidden) #119
base: master
Are you sure you want to change the base?
feature: yes/no site_name (hidden) #119
Conversation
update update update fixbug target update update update update updated update
update update update
+ project.definition.admin0pcode | ||
+ '&admin1pcode=' + location.admin1pcode | ||
}).then(function (result) { | ||
if (locationAdmin1pcodeTag !== location.admin1pcode) { |
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.
that will make a request on each location, on the same admin1 that will return 304,
what will happen if locationAdmin1pcodeTag changes from A to B and then to A ( on refactor-location-handling locationAdmin1pcodeTag that is handled with array )
what if having a function on form widget that handles for locations unique admin sites requests if missing ( or whatever admin1,2,3 or site type by config, if taking into consideration configurable admin fetch service )
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.
yes i will change it like on refactor-location-handling,
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.
please check comment for setLocationAdminSelect
for hidden feature description please add more details and issue # for future reference
updated |
please try to handle adminSites requests in a separate function before setLocationAdminSelect, what happens if admin sites for admin1 already exist? |
So you want fetch all the adminsite first then running the setLocationAdminSelect? |
the idea is like that: |
I put new function on separate function, so for now its just check if admin1 is on adminSites list or not , if not it will make request |
with those notes let's comment/remove from this pull request and deal with that in a separate issue, we need to consider the details and test this functionality thoroughly as that will impact various operations, |
but if setLocationAdminSelect not wait for adminsite request done the list adminsite foreach location is empty |
yes, so that when complete, if adminsites updated setLocationAdminSelect will run once again ( better would be to update per location ), like that it is also not perfect, so that I propose to deal in a separate issue |
so you mean run setLocationAdminSelect itself and run again after fetchInitialAdminSites ? |
yes, the idea to have fetchInitialAdminSites not dependant with setLocationAdminSelect, so that we need to elaborate on it |
And no 5 on example you mean by fetched on admin2 ? is from API or just filter the list ? |
that is to the idea of configuration for target locations |
okay i will procced this on other branch (refactor location handling) |
update update update update
And for this i already updated |
type site_id from adminSites list is number but in the target location it saves as a string, and then when trying to match with site_id in adminsiteLists it doesn't match so that make location name disappear or not show demononamesiteid.mp4and for this "i am not sure on this pull if yes/no should appear with empty list " , can we just make it like this? if its empty list |
|
updated |
updated |
No description provided.