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

Add option to update project imagery API key #683

Open
laurentS opened this issue Apr 28, 2023 · 1 comment
Open

Add option to update project imagery API key #683

laurentS opened this issue Apr 28, 2023 · 1 comment
Labels
effort-half-day-or-less Half day or less of work estimated enhancement New feature or request javascript Pull requests that update Javascript code manager_dashboard Issues related to the managers' dashboard

Comments

@laurentS
Copy link
Member

The api key for maxar imagery seems to be rotated fairly frequently. When this happens, users have no imagery at all, and only a (small) handful of us of are able to unblock the situation, which is a major problem for urgent projects.

It would be helpful to have some way to update projects imagery api key from the management dashboard. Suggested workflow:

  • add a update maxar imagery key button somewhere under each project box
  • upon clicking, that button opens an input box that allows inputting the new API key value (and has some validity check to limit risks of typos, etc...)
  • once validated, the project settings in firebase are updated

This should allow anyone with manager permissions to fix their own (and other) projects, which hopefully would remove that bottleneck.

@laurentS laurentS added enhancement New feature or request effort-half-day-or-less Half day or less of work estimated javascript Pull requests that update Javascript code manager_dashboard Issues related to the managers' dashboard labels Apr 28, 2023
@danbjoseph
Copy link
Member

danbjoseph commented May 1, 2023

For anyone with access to the backend server, @Hagellach37 previously added an automated way to update all affected projects. Should we have a sort of "system" page as part of the management dashboard that provides a UI for things like this?

update_tms_api_key:
@echo "first update the .env file with the new api key and then run this script with tms_name=your_tms_provider_name to update API key"; docker compose run --rm mapswipe_workers_creation python python_scripts/change_tms_api_key_for_projects.py $(tms_name)


@danbjoseph: if we are grabbing the JOSM key, is MapSwipe causing the “conspicuous usage pattern” that is mentioned in the JOSM issue as causing Maxar to rotate the key?

@Hagellach37: we had an exchange around this about 2-3 years ago, when this came up the first time and together with someone from Maxar we concluded that it is not MapSwipe. The volume was much much bigger than what we do usually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-half-day-or-less Half day or less of work estimated enhancement New feature or request javascript Pull requests that update Javascript code manager_dashboard Issues related to the managers' dashboard
Projects
None yet
Development

No branches or pull requests

2 participants