Closed andrewvanbreda closed 1 year ago
Hi @DavidRoy
Can I clarify that I am doing the right thing before I spend the time on it.
One possible plan is to implement the following:
Add a download option to the existing "My fixed square results" map and grid page.
Create a new page "My transect walk results" with similar features as above.
Add a new regional results, complete download page which would use Indicia easy_download form. I think this can be done on one page with role detection built in.
Shout if you want something different to the above.
Questions before going ahead.
Currently EU Poms doesn't have the concept of someone having a region (the countries don't work in the same way as EBMS) This could work in a similar way as FIT Count though, and appear as a selectable drop-down on their account page? I assume the regions are the same as the countries on the data entry pages?
Yes, that's right and the countries are the same as for the data entry pages
@andrewvanbreda this is the next priorty for SPRING. Do you have an eta for having this ready to test?
@DavidRoy Yes am in middle of this. Think the transect bit is mostly ready to test, but I made a major change today that hasn't been pulled yet.
If you need urgently I can probably get you a testable version in next day or so.
That's good to know. In the next few weeks is fine, not super urgent
Hi @DavidRoy,
These are now ready for testing (I have tested them myself also).
A few notes
The pages to check are these.
https://pollinator-monitoring.net/my-transect-walk-results https://pollinator-monitoring.net/transect-walk-results https://pollinator-monitoring.net/fixed-square-results
Note these are not currently available in the menu yet, and are only available if you have administrator rights (which you do). That will be change when they go live and normal users will have access to the My Data report.
All the pages have separate sample and occurrences grids.
Note that the downloaded CSV files contain extra columns to the grids seen on screen. Fewer columns are shown on screen purely to stop the grid being too wide. The columns displayed are just chosen by me (i.e. a guess), so if you prefer others, then let me know.
Administrators should not have the region set if you want them to access all the data.
Note that regional coordinators who have not had their region set will also see all the data, so their region should be set.
I am aware of a problem where one of the users is not having their Sun % and Cloud % fields filled in, so there is no need to report that issue to me. This data appears to be missing from the cache table, am not sure why yet.
There is a "My fixed squares results" page already live in the menu, so that is why that isn't in the list of new reports to test.
Andy
Thanks. Looking good. A few immediate comments.
Can you also make available for 'Regional co-ordinators' so I can ask them to test
Hi @DavidRoy Have done the Regional Coordinator part of this (I also checked one of the coordinators can actually access the pages after masquerading). You will need to set the "Coordination country" drop-down on the corrdinators' account page.
Not done the other bits yet.
@DavidRoy Those problems have been fixed.
@andrewvanbreda could you add these pages to the 'View results' pages, reflecting permissions settings
@DavidRoy This is deployed now. I will close this after I check the glitch in the cache table I mentioned above.
Hi @BirenRathod Could you send me the results of these 3 queries please. Probably best to email it to me rather than post here as not sure is suitable for Github. Thanks
select * from indicia.samples where id in ( 20286744, 20286712, 20061851, 20061829, 20061753, 20061803, 20286863, 20286855, 20286805, 20286794, 20286682, 20286673, 20286667);
select * from indicia.cache_samples_functional where id in ( 20286744, 20286712, 20061851, 20061829, 20061753, 20061803, 20286863, 20286855, 20286805, 20286794, 20286682, 20286673, 20286667);
select * from indicia.cache_samples_nonfunctional where id in ( 20286744, 20286712, 20061851, 20061829, 20061753, 20061803, 20286863, 20286855, 20286805, 20286794, 20286682, 20286673, 20286667);
@andrewvanbreda Here are the results. spring.zip
Thanks @BirenRathod
@johnvanbreda I have a problem with this project, the attrs_json field is not filled in sometimes, but I don't undeerstand why. Isn't this an automatic process? Have you seen that happen before? Example sample number is 20061753 which appears to have sample attributes the the attrs_json is empty.
Coincidentally I had noticed that this ties in with the spatial indexing not working this morning, so I think that sometimes the work queue doesn't complete all the tasks it should. I can't see why but I have added some logging code to the warehouse so I'll have a look tomorrow to see whether there are new samples without spatial indexing or attrs_json. If so I should be able to get a bit more info.
I've changed the way the work_queue works so it won't cleanup any tasks that haven't completed properly - not 100% sure this will fix it but hopefully it will. I've also queued the blank ones so they will get filled in correctly.
Closing, as data looks like it is now filled in, and the reports have past all other tests and are live. If there are an individual data caching problems they can be raise separately.
Need download reports for:
User: own data they have entered Co-ordinators: for their region Super-users: whole dataset
Possibly clone functionality from PoMS/eBMS for this