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

Draft: Wget simple, bearer token and Globus script API integrations #456

Open
wants to merge 151 commits into
base: v1.1.0
Choose a base branch
from

Conversation

sashakames
Copy link
Collaborator

@sashakames sashakames commented Jul 25, 2022

Description

Integrates the frontend with the updated Wget API. Following changes:

  • wget_simple mode
  • Optional bearer token integration
  • Globus script option (for Globus enabled data)

Fixes 316

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Local Pre-commit Checks
  • CI/CD Build

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • If applicable - I have commented my code, particularly in hard-to-understand areas
  • If applicable - I have made corresponding changes to the documentation
  • If applicable - I have added tests that prove my fix is effective or that my feature works
  • If applicable - New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

lisi-w and others added 23 commits September 3, 2021 14:26
…(if they aren't found), rather than redirect the page.
* changes to fix wget download issues: multiple download, direct link handed to browser

* Removed uneccessary import

Co-authored-by: Sasha Ames <amysash2006@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* hotfix to get wget script download to work (#449) (#450)

* hotfix to get wget script download to work (#449)

* hotfix to get wget script download to work

* fix removed return

* Updating file to fix minor blank line issue.

Co-authored-by: Sasha Ames <sashakames@users.noreply.github.com>

* Update typescript-eslint monorepo to v5.30.7

Co-authored-by: Carlos Downie <42552189+downiec@users.noreply.github.com>
Co-authored-by: Sasha Ames <sashakames@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Downie <42552189+downiec@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jul 25, 2022

Codecov Report

Merging #456 (42493be) into v1.0.9 (e0eef98) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 42493be differs from pull request most recent head cb9cb79. Consider uploading reports for the commit cb9cb79 to get more accurate results

@@            Coverage Diff             @@
##            v1.0.9      #456    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           78        62    -16     
  Lines         2155      1739   -416     
  Branches       330       326     -4     
==========================================
- Hits          2155      1739   -416     
Flag Coverage Δ
backend 100.00% <100.00%> (ø)
frontend 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
backend/metagrid/api_proxy/views.py 100.00% <100.00%> (ø)
frontend/src/api/index.ts 100.00% <100.00%> (ø)
frontend/src/api/mock/server-handlers.ts 100.00% <100.00%> (ø)
frontend/src/api/routes.ts 100.00% <100.00%> (ø)
frontend/src/components/Cart/Items.tsx 100.00% <100.00%> (ø)
frontend/src/components/Search/Table.tsx 100.00% <100.00%> (ø)
frontend/src/env.ts 100.00% <100.00%> (ø)

... and 42 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

sashakames and others added 6 commits July 25, 2022 17:06
* Testing the use of a central config file and a manager script. Created a metagrid_configs folder where different configs can be stored and used.

* updates to scripts and dockerfile for traefik to handle empty prefx variables.

* More fixes and updates.

* Refactoring to fix issues with the variables used in the master config file, so that they don't repeat in the config. Removed unnecessary folders and updated the manage_metagrid script to allow saving and restoring of config files in an automated way. Every time changes are made to the config, a backup will be created which will have date and time associated to it. Users can then restore that backup with a simple command in the script (which will also save the current config that is replaced. Note that if lots of changes are made, config backups should probably be deleted now and then.

* Updated script to include sudo that was missing and also copy to traefik when a backup is restored.

* updates t the script for local testing. Fixed a docker-compose minor issue in the backend production so it points to correct config file.

* Updated the scripts to save environment file in each docker directory. It seems that the frontend uses the package.json build call rather than the one in docker compose, so the environment file was not found when building react. Modifications should help fix that issue.

* Added cors proxy variable because it still seems necessary for the backend communication with frontend...

* Updates to the metagrid documentation. A restructuring update needs to be done for getting_started_production.md in order to reflect the new way which configuration is setup and updated in production.

* Updated manage script to include the option for starting/stopping the docs local containers. Updated django version to 3.2.15

* Updated the documentation to specify the manage_metagrid.sh scripts and how to update the projects. Also updated the configuration steps and how to get production started.
sashakames and others added 28 commits August 10, 2023 14:38
…ed some mocks for the temp storage calls which were breaking several tests. Created a new test file for the DatasetDownload component, however it needs to have tests added. Next step is to examine coverage and also fix the skipped tests if neede to improve coverage.
…ed keycloak related changes for now. Fixed tests that were broken from the wget changes, converted to using post and tests passed again.
@sashakames sashakames changed the base branch from v1.0.9 to v1.1.0 January 30, 2024 15:45
@sashakames sashakames changed the title Wget simple, bearer token and Globus script API integrations Draft: Wget simple, bearer token and Globus script API integrations Jan 30, 2024
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.

None yet

4 participants