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

feat: Enables support for Blobs on the Launch form #86

Merged
merged 9 commits into from
Jul 20, 2020
Merged

Conversation

schottra
Copy link
Contributor

flyteorg/flyte#378

This adds basic input support for blobs by rendering a micro form containing uri, format and dimensionality sub-inputs. The only required input from a user is the uri field. Dimensionality is technically required, but is implemented with a select control that defaults to a value. So it's not possible for a user to specific an empty dimensionality in the simple case.

Collections of Blobs are also supported, following the same rules as other input types (it is specified with a JSON array string). In this case, each value must include a uri and dimensionality.

format is always optional and must be a string.

image

image

@schottra schottra changed the title fix: Enables support for Blobs on the Launch form feat: Enables support for Blobs on the Launch form Jul 20, 2020
Copy link
Contributor

@BobNisco BobNisco left a comment

Choose a reason for hiding this comment

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

Thanks for fast iterations! LGTM 👍

@codecov-commenter
Copy link

Codecov Report

Merging #86 into next will increase coverage by 0.52%.
The diff coverage is 90.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next      #86      +/-   ##
==========================================
+ Coverage   63.27%   63.79%   +0.52%     
==========================================
  Files         364      366       +2     
  Lines        5772     5856      +84     
  Branches      873      892      +19     
==========================================
+ Hits         3652     3736      +84     
  Misses       2120     2120              
Impacted Files Coverage Δ
...unch/LaunchWorkflowForm/inputHelpers/collection.ts 68.75% <0.00%> (ø)
src/components/Launch/LaunchWorkflowForm/types.ts 100.00% <ø> (ø)
src/models/Common/types.ts 100.00% <ø> (ø)
...components/Launch/LaunchWorkflowForm/BlobInput.tsx 75.00% <75.00%> (ø)
...nts/Launch/LaunchWorkflowForm/inputHelpers/blob.ts 93.18% <93.18%> (ø)
...ch/LaunchWorkflowForm/LaunchWorkflowFormInputs.tsx 76.66% <100.00%> (+2.59%) ⬆️
.../components/Launch/LaunchWorkflowForm/constants.ts 100.00% <100.00%> (ø)
.../Launch/LaunchWorkflowForm/inputHelpers/boolean.ts 100.00% <100.00%> (ø)
...Launch/LaunchWorkflowForm/inputHelpers/datetime.ts 100.00% <100.00%> (ø)
...Launch/LaunchWorkflowForm/inputHelpers/duration.ts 100.00% <100.00%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8367375...cab2584. Read the comment docs.

@schottra schottra merged commit b66898e into next Jul 20, 2020
schottra added a commit that referenced this pull request Jul 20, 2020
* fix: show full millisecond values for subsecond durations (#81)

* Bump npm from 6.14.5 to 6.14.6 (#82)

Bumps [npm](https://github.com/npm/cli) from 6.14.5 to 6.14.6.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](npm/cli@v6.14.5...v6.14.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: show info message for un-launchable workflows (#84)

* refactor: adding utility to help determine if an input type is supported

* fix: adding detection and special rendering for unlaunchable workflows

* fix: implementing error message for unlaunchable workflows

* chore: docs

* chore: pr feedback

* feat: Enables support for Blobs on the Launch form (#86)

* refactor: adds scaffolding for blob input support

* fix: add controls and processing for blob fields

* fix: support using string values for dimensionality in collections

* fix: more info so validators can check subfields

* test: tests for blob input helper

* test: remaining tests for blobs

* chore: cleanup

* refactor: adding some type guards

* test: fixing some test cases

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@schottra schottra deleted the support-blob-urls branch September 9, 2020 19:43
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.

3 participants