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

V1.2.2 release #716

Merged
merged 7 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"python.analysis.extraPaths": ["backend/venv/bin/python"]
"python.analysis.extraPaths": ["backend/venv/bin/python"],
"editor.formatOnSave": true
}
6 changes: 0 additions & 6 deletions backend/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from metagrid.api_proxy.views import (
do_citation,
do_globus_auth,
do_globus_get_endpoint,
do_globus_logout,
do_globus_search_endpoints,
do_search,
Expand Down Expand Up @@ -58,11 +57,6 @@ class KeycloakLogin(SocialLoginView):
path("", include("social_django.urls", namespace="social")),
path("proxy/globus-logout/", do_globus_logout, name="globus-logout"),
path("proxy/globus-auth/", do_globus_auth, name="globus-auth"),
path(
"proxy/globus-get-endpoint/",
do_globus_get_endpoint,
name="globus-get-endpoint",
),
path(
"proxy/globus-search-endpoints/",
do_globus_search_endpoints,
Expand Down
8 changes: 0 additions & 8 deletions backend/metagrid/api_proxy/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ def test_globus_auth_begin(self):
)
self.assertEqual(response.status_code, 302)

def test_do_globus_get_endpoint(self):
url = reverse("globus-get-endpoint")

data = {"endpoint_id": "0247816e-cc0d-4e03-a509-10903f6dde11"}
response = self.client.get(url, data)
print(response.status_code)
assert response.status_code == status.HTTP_200_OK

def test_do_globus_search_endpoints(self):
url = reverse("globus-search-endpoints")

Expand Down
21 changes: 0 additions & 21 deletions backend/metagrid/api_proxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@ def do_globus_logout(request):
return redirect(homepage_url)


@api_view()
@permission_classes([])
def do_globus_get_endpoint(request):
endpoint_id = request.GET.get("endpoint_id", None)
if request.user.is_authenticated:
tc = load_transfer_client(request.user) # pragma: no cover
else:
client = globus_sdk.ConfidentialAppAuthClient(
settings.SOCIAL_AUTH_GLOBUS_KEY, settings.SOCIAL_AUTH_GLOBUS_SECRET
)
token_response = client.oauth2_client_credentials_tokens()
globus_transfer_data = token_response.by_resource_server[
"transfer.api.globus.org"
]
globus_transfer_token = globus_transfer_data["access_token"]
authorizer = globus_sdk.AccessTokenAuthorizer(globus_transfer_token)
tc = globus_sdk.TransferClient(authorizer=authorizer)
endpoint = tc.get_endpoint(endpoint_id)
return Response(endpoint.data)


@api_view()
@permission_classes([])
def do_globus_search_endpoints(request):
Expand Down
159 changes: 99 additions & 60 deletions backend/metagrid/initial_projects_data.py

Large diffs are not rendered by default.

31 changes: 11 additions & 20 deletions docs/docs/contributors/getting_started_production.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
mkdocs==1.4.2 # https://www.mkdocs.org/
mdx_truly_sane_lists==1.3 # https://github.com/radude/mdx_truly_sane_lists
sphinx==4.3.2 # https://www.sphinx-doc.org/
sphinx_rtd_theme==1.0.0 # https://github.com/readthedocs/sphinx_rtd_theme
4 changes: 0 additions & 4 deletions frontend/.envs/.react
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# Redirect the frontend to home page when old subdirectory is used (optional)
REACT_APP_PREVIOUS_URL=metagrid

# MetaGrid API
# https://github.com/aims-group/metagrid/tree/master/backend
REACT_APP_METAGRID_API_URL=

# Authentication Method
REACT_APP_AUTHENTICATION_METHOD=globus

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "1.2.1",
"version": "1.2.2",
"private": true,
"scripts": {
"build:local": "env-cmd -f .envs/.react react-scripts build",
Expand Down
4 changes: 4 additions & 0 deletions frontend/public/changelog/v1.2.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Summary

1. Fixes issue with node status display icons.
2. Additional bugfixes.
2 changes: 1 addition & 1 deletion frontend/public/messages/metagrid_messages.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to the Metagrid Release v1.2.0
# Welcome to the Metagrid Release v1.2.x

To view the latest documentation and FAQ, please visit this page:
[https://esgf.github.io/esgf-user-support/metagrid.html](https://esgf.github.io/esgf-user-support/metagrid.html)
Expand Down
Loading
Loading