Skip to content

Commit

Permalink
V1.2.2 release (#716)
Browse files Browse the repository at this point in the history
* Update version number, add version changelog (to be updated with the changes that will be included in this update)

* Updated documentation references to config variables (#706)

* Updated documentation, specifically references to the configuration parameters which have changed over time, to use the latest variable names currently used in configuration. Updated requirements to use the latest readthedocs them of Sphinx

* Update version number, add version changelog (to be updated with the changes that will be included in this update)

* fixed the pagination so that it will reset to page one when doing a new search (#705)

* update for obs4MIPs (#711)

Co-authored-by: Sasha Ames <[email protected]>

* Updated the settings file to autoformat on save to hopefully reduce linting errors. Fixed linting errors for the initial_projects_data update. Fixed the status tooltip to correctly display the node's status. Updated test fixtures to accurately reflect the node status response (the node names included the https:// in front and thats why status tooltip wasn't finding them. (#714)

* Added alert for the case that a collection search fails in the manage collections popup (#710)

* Added alert for the case that a collection search fails in the collection management popup. Added a test to bring the coverage up to 100% for the search table component. Removed some unused code, the get endpoint function is not used.

* Minor linting error fixes.

* Fixed some backend tests based on the removed/unused functions

* Small fix to test.

* Minor update to update summary.

---------

Co-authored-by: Sasha Ames <[email protected]>
  • Loading branch information
downiec and sashakames authored Jan 23, 2025
1 parent ee28ed0 commit 01d3021
Show file tree
Hide file tree
Showing 17 changed files with 213 additions and 629 deletions.
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

0 comments on commit 01d3021

Please sign in to comment.