-
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
update donors list handling #64
Comments
Link Donor from FE ,some don't have cluster so i make it to 'all' |
that's exactly right |
for the API the filter is just country cluster ? or donor_id donor_name too? |
for the api contry cluster should be enough, but in general like for activities country list should be fetched + default ALL country list, on FE, project country cluster list should be used, if no cluster default country ALL cluster, if no country list default ALL global list |
updated |
alright, why would use aggregate rather than find? also, should there be FE updates? |
You mean inside native? i just take a look from other that using native its using aggregate |
Updated link: and for stock donor just need to update in FE right? coz it use same data that use in project plan right? |
right, that should be the same, but as stock cluster could be changed donors should be updated on change |
okay , updated |
please make pull so that i would check, and please prepare file and script for import, getStockLists: function (org) org param is it report or organization? |
i chenge it again to same as before so now is just admin0pcode when set stock lists |
file: script: PR: |
|
Point 1 wash | danida | DANIDA it become [wash,esnfi] | danida | DANIDA (array) or wash,esnfi | danida | DANIDA (string); Point 2 point 3. so we need to make different list for each stock record right? |
|
Updated: script: PR: |
alright, for multi-country role users will that return corresponding donors or of their registered country? |
it based on country that user have coz i used admin0pcode from user profie |
alright, let's do multicountry in another issue, for AF donors are already on db, but they are without admin0pcode, that should be included also for
that should apply when setting lists for project or stocks, I think right now on BE does it check for cluster if not in params? as project or stock can have a cluster to it, I guess with the current setup default global list and country-specific could be requested, and then filtered correspondingly |
You mean this one? if yes , i already put it but i set all to admin0pcode as 'ALL' |
Yes, this is actually used by AF |
yes its check cluster params and also for filter like this:
i already do that in BE |
if we define for example one donor admin0pcode AF and cluster protection as somedonor we will get on protection project somedonor and other checkboxes? |
other will be add on getDonors function on ngmClusterLists |
Alright, looks good, |
just to make sure donors not return empty string; |
as per previous works
to compile fe donors with db ones ( current db https://docs.google.com/spreadsheets/d/1aCXr6SqC4OK-CvcH8IS9m-01Wljf94UvoKuD6EsBQWE/edit?usp=sharing )
to migrate to API based: country cluster donor_id donor_name
proposal to add a default value for the cluster, admin0 for use when clusters, admin0 not provided the lists
to have stocks donors also per cluster
The text was updated successfully, but these errors were encountered: