BirdsCanada / NatureCountsAPI

NatureCountsAPI
0 stars 1 forks source link

Update to collection access list needed #34

Open pmorrill opened 4 years ago

pmorrill commented 4 years ago

We are considering switching the api to a new procedure for building the collections access list.

The entry point in question: api/data/list_permissions This returns 3 vectors: coll_user_status, collection, akn_level

The preferred procedure (prAPI_collection_access) would change this entrypoint so that it returns the following fields. I have no mechanism for mapping these fields to the original names above:

collection_code (same as collection above) user_status (same as coll_user_status above) collection_name akn_level (same as above) expiry_dt n_records

I can go ahead with this but Steffi would have to update the R-client. Or, if this procedure is not used elsewhere, would could just update the procedure to return the original names for the vectors. I did a quick search in bsc-base and could find no other use of the prAPI_collection_access proc.

denislepage commented 4 years ago

I think I would be in favour of keeping both procs for now, and adjusting the rules in list permissions so it matches the other one, and keep the same original field names.

pmorrill commented 4 years ago

That sounds good to me, as no work would be involved for Steffi or I (no disruption to the end users). Catherine - is Denis' a good plan?