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

Renamed GRASS GIS locations to projects #565

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

anikaweinmann
Copy link
Member

@anikaweinmann anikaweinmann commented Oct 16, 2024

Renamed GRASS GIS locations to projects from GRASS GIS version 8.4:

  • add decorator for deprecated locations
  • add endpoints for all projects-endpoint-urls
  • Add tests for G8.3 and G8.4

tests/test_noauth.py Outdated Show resolved Hide resolved
tests/test_webhook.py Outdated Show resolved Hide resolved
tests/test_webhook.py Outdated Show resolved Hide resolved
grass_version_s = G_VERSION["version"]
grass_version = [int(item) for item in grass_version_s.split(".")[:2]]
if grass_version >= [8, 4]:
param["projects"] = projects
Copy link
Member

Choose a reason for hiding this comment

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

This might break with LocationListResponseModel

Copy link
Member

Choose a reason for hiding this comment

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

Fine if this PR stays open as long as it takes to also adjust actinia-api but I would suggest to do adjustments in a separate PR.

"endpoint": http_request.endpoint,
# For depricated location endpoints remove "_locations" from
# endpoint class name
"endpoint": http_request.endpoint.replace("_locations", ""),
Copy link
Member

Choose a reason for hiding this comment

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

Why is this necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is needed because I can't add two urls for one endpoint. The endpoint is inside the actinia response and is used for the job jesumption.

"endpoint": request.endpoint,
# For depricated location endpoints remove "_locations" from
# endpoint class name
"endpoint": request.endpoint.replace("_locations", ""),
Copy link
Member

Choose a reason for hiding this comment

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

And here? I guess for the same reason 🙃

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

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.

2 participants