Accept multiple download ids and expire all queued option #78#79
Accept multiple download ids and expire all queued option #78#79patrick-austin merged 25 commits into36_queuingfrom
Conversation
Use timeout, actual ICAT ids and Long.equals in UserResourceTest #35
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.2.12 to 1.2.13. - [Commits](qos-ch/logback@v_1.2.12...v_1.2.13) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…gback-logback-classic-1.2.13 Bump ch.qos.logback:logback-classic from 1.2.12 to 1.2.13
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.1.7 to 1.2.13. - [Commits](qos-ch/logback@v_1.1.7...v_1.2.13) --- updated-dependencies: - dependency-name: ch.qos.logback:logback-classic dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…/skeleton_plugin/ch.qos.logback-logback-classic-1.2.13 Bump ch.qos.logback:logback-classic from 1.1.7 to 1.2.13 in /provision/skeleton_plugin
Replace mysql:mysql-connector-java with com.mysql:mysql-connector-j
Enable dependabot for GHA #64
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Commits](actions/cache@v2...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…actions/cache-4 Bump actions/cache from 2 to 4
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@v1...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…actions/setup-java-4
Bumps [nick-invision/assert-action](https://github.com/nick-invision/assert-action) from 1 to 2. - [Release notes](https://github.com/nick-invision/assert-action/releases) - [Changelog](https://github.com/nick-fields/assert-action/blob/main/.releaserc.js) - [Commits](nick-fields/assert-action@v1...v2) --- updated-dependencies: - dependency-name: nick-invision/assert-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…nick-invision/assert-action-2
tools/datagateway_admin
Outdated
| "sessionId": session_id, | ||
| "queryOffset": "where download.id = " + download_id | ||
| }, verify=verifySsl).text) | ||
| download_ids = input("Enter download id(s): ") |
There was a problem hiding this comment.
As per the other PR, we should clarify what the separator is eg:
"Enter download id(s) - space separated if multiple:"
tools/datagateway_admin
Outdated
| else: | ||
| for datafile_location in datafile_locations: | ||
| print(datafile_location) | ||
| download_ids = input("Enter download id(s): ") |
There was a problem hiding this comment.
As per the other PR, we should clarify what the separator is eg:
"Enter download id(s) - space separated if multiple:"
tools/datagateway_admin
Outdated
|
|
||
|
|
||
| def expire_download(): | ||
| download_ids = input("Enter download id(s): ") |
There was a problem hiding this comment.
As per the other PR, we should clarify what the separator is eg:
"Enter download id(s) - space separated if multiple:"
tools/datagateway_admin
Outdated
| def start_queued_download(): | ||
| download_id = input("Enter download id: ") | ||
| prepare_download(download_id=download_id) | ||
| download_ids = input("Enter download id(s): ") |
There was a problem hiding this comment.
As per the other PR, we should clarify what the separator is eg:
"Enter download id(s) - space separated if multiple:"
tools/datagateway_admin
Outdated
| } | ||
| url = topcat_url + "/admin/download/" + download_id + "/status" | ||
| requests.put(url=url, data=data, verify=verifySsl) | ||
| download_ids = input("Enter download id(s): ") |
There was a problem hiding this comment.
As per the other PR, we should clarify what the separator is eg:
"Enter download id(s) - space separated if multiple:"
tools/datagateway_admin
Outdated
| @@ -387,7 +406,8 @@ while True: | |||
| print(" * 10: Start a queued download.") | |||
There was a problem hiding this comment.
This should probably now be "Start queued download(s)." with this pattern being applied to all the other options that now accept multiple IDs.
tools/datagateway_admin
Outdated
| print(" * 11: Start all queued downloads.") | ||
| print(" * 12: Re-queue expired download.") | ||
| print(" * 13: Exit") | ||
| print(" * 13: Expire all queued download.") |
Add new POST /admin/download/{id}/prepare endpoint #74
|
Merged |
|
So after #72 the CI can get to |
Closes #78