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

Remove need environmentsjson #147

Merged
merged 19 commits into from
Dec 5, 2024
Merged

Conversation

grallewellyn
Copy link
Contributor

@grallewellyn grallewellyn commented Dec 4, 2024

https://raw.githubusercontent.com/MAAP-Project/maap-jupyter-ide/develop/maap_environments.json was giving a 403 when the API tried to access it

Instead, I added the environments.json file to this repository. I think if we need to maintain this file on git, then this repo makes the most sense

The API can now access the environments.json correctly

I don't see any reason to continue having MAAP_ENVIRONMENT_FILE in the api/settings.py and it does not seem to be mentioned anywhere else https://github.com/search?q=org%3AMAAP-Project%20MAAP_ENVIRONMENT_FILE&type=code

Related to: MAAP-Project/Community#1055

Copy link
Collaborator

@bsatoriu bsatoriu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the exception handling addition Marjorie mentioned, this looks ready to me.

Copy link

sonarcloud bot commented Dec 5, 2024

@grallewellyn
Copy link
Contributor Author

Added error handling and passing checks

Tested that when I purposely do the wrong environments.json file path, the API gives a 500 error
Screenshot 2024-12-05 at 9 48 42 AM

@grallewellyn grallewellyn merged commit a261684 into develop Dec 5, 2024
5 checks passed
@grallewellyn grallewellyn deleted the remove-need-environmentsjson branch December 5, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants