Skip to content
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

[Enhancement] Active hotbeds reworks #219

Open
SanderDevisscher opened this issue Jun 24, 2024 · 5 comments
Open

[Enhancement] Active hotbeds reworks #219

SanderDevisscher opened this issue Jun 24, 2024 · 5 comments
Assignees
Labels
automated workflow enhancement New feature or request

Comments

@SanderDevisscher
Copy link
Collaborator

SanderDevisscher commented Jun 24, 2024

Feature title

Species infromation > Management > Active hotbeds

Description

The active hotbeds map should display a hot map of recent (last 2 weeks) observations independent of management status of nearby nests. This should occur at a high update frequency (daily) to allow for rapid response.

(Optional) Needed changes in backoffice

#173

(Optional) Suggestion how to implement change

Might be naive but I think this can be achieved by doing a daily pull of the waarnemingen.be API.
We have the necessary credentials and 3 example scripts to get access.

the example scripts:
waarnemingenAPI.zip

Alternatively, with some minor changes to these scripts, we can create a GDPR proof version of the data in a googlesheet.
Which do you prefer?

@mvarewyck
Copy link
Collaborator

Might be naive but I think this can be achieved by doing a daily pull of the waarnemingen.be API. We have the necessary credentials and 3 example scripts to get access.

the example scripts: waarnemingenAPI.zip

Alternatively, with some minor changes to these scripts, we can create a GDPR proof version of the data in a googlesheet. Which do you prefer?

@SanderDevisscher Yes, based on the scripts you shared, you can do a daily API pull. I see no need to write the data to a googlesheet, I would just add the data to the S3 bucket with a script from aspbo.

@SanderDevisscher
Copy link
Collaborator Author

@mvarewyck best to put it on the PRD bucket directly then ?

@mvarewyck
Copy link
Collaborator

@mvarewyck best to put it on the PRD bucket directly then ?

Yes, if you don't want to do a daily PR from UAT to PRD.
Then in the data processing script I would

  • add some checks on the data structure (e.g. no. of rows >0, column names) before the data is pushed to the bucket.
  • when the checks fail and there is no update of the data, make sure we get a notification (automatically with github actions?)

@SanderDevisscher
Copy link
Collaborator Author

@mvarewyck 0 rows is a real possibility in the winter when they are not active. The app should display a disclaimer when this the case.

@TheJenne18 can you confirm the PRD - bucket exists and can be writen to by github actions from the aspbo repo ?

@SanderDevisscher
Copy link
Collaborator Author

transfer to Aspbo => daily workflow directly to PRD bucket with some workflow tests

@SanderDevisscher SanderDevisscher transferred this issue from inbo/alien-species-portal Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated workflow enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants