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

add lakefs version to ui #2088

Merged
merged 7 commits into from
Jun 13, 2021
Merged

add lakefs version to ui #2088

merged 7 commits into from
Jun 13, 2021

Conversation

johnnyaug
Copy link
Contributor

@johnnyaug johnnyaug commented Jun 9, 2021

Solves #2077

@johnnyaug johnnyaug requested review from itaiad200 and talSofer June 9, 2021 13:34
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Thanks!

Requested change is to use objects (not strings) in responses.

api/swagger.yml Outdated
content:
application/json:
schema:
type: string
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an object. That way we can add more details, e.g. API versions, plugin versions, etc.

Passing a primitive or an array as the entire JSON response is somewhat similar to "primitive obsession", and can be particularly nasty in APIs.

@johnnyaug johnnyaug requested a review from arielshaqed June 13, 2021 11:52
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@@ -694,7 +694,11 @@ components:
type: string
blockstore_namespace_ValidityRegex:
type: string

VersionConfig:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
VersionConfig:
VersionConfig:

api/swagger.yml Outdated
description: get version of lakeFS server
responses:
200:
description: lakeFS storage configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

The description is incorrect

@johnnyaug johnnyaug requested a review from talSofer June 13, 2021 12:18
@johnnyaug johnnyaug merged commit 68927d6 into master Jun 13, 2021
@johnnyaug johnnyaug deleted the feature/ui_version_num branch June 13, 2021 12:38
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