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

MGMT-12996: enhancement for dynamic OCP fetching #4893

Conversation

osherdp
Copy link
Contributor

@osherdp osherdp commented Jan 15, 2023

Suggesting how assisted-service and assisted-installer UI can be adjusted to deliver all versions in the upgrade-channel API without the need of specified configuration.

Screenshot from 2023-01-15 11-43-30
Screenshot from 2023-01-15 11-43-41

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

Suggesting how assisted-service and assisted-installer UI can be
adjusted to deliver all versions in the upgrade-channel API without the
need of specified configuration.
@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 15, 2023
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2023
@osherdp
Copy link
Contributor Author

osherdp commented Jan 15, 2023

/hold for getting all the feedback
/cc @filanov @gamli75 @danielerez @avishayt @carbonin
(please suggest more reviewers as seems fit)

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 15, 2023
@osherdp osherdp force-pushed the enhancement/dynamic-fetching-of-openshif-versions branch from e43d718 to 4f14d9e Compare January 16, 2023 15:17
Mainly around those points:
* Mentioning more explicitly how assisted-image-service cops with the
  changes.
* Provide more APIs for better transparency and for the UI to be able to
  only fetch the relevant versions.
* Wording and repharsing changes.
@osherdp osherdp force-pushed the enhancement/dynamic-fetching-of-openshif-versions branch from 4f14d9e to e20563a Compare January 16, 2023 15:32
@carbonin
Copy link
Member

Looks good to me.

Any other feedback or are we good to merge?

@osherdp
Copy link
Contributor Author

osherdp commented Jan 24, 2023

@gamli75 @filanov @danielerez @avishayt anything else here?

@danielerez
Copy link
Contributor

@gamli75 @filanov @danielerez @avishayt anything else here?

Looks good to me.

@gamli75
Copy link
Contributor

gamli75 commented Jan 25, 2023

Looks good to me.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 25, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jan 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gamli75, osherdp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@osherdp
Copy link
Contributor Author

osherdp commented Jan 25, 2023

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jan 25, 2023

@osherdp: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 8b8e06e into openshift:master Jan 25, 2023
description: It true, returns only the latest version for each minor.
type: boolean
allowEmptyValue: true
default: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@avishayt @danielerez do you think it should be true by default?
otherwise it returns a big list that might be a bit weird for some API consumers

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, changing the current behaviour of the API might be confusing for existing users.
What about introducing instead a property for getting all versions? Something like 'include_all_minor' boolean.
From the UI perspective, it seems that only two variants will be used: the old behaviour (only latest) and version_pattern. So getting all minor versions seems like a rare option that deserves a separate special param.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

include_all_minor is the same as having the proposed only_latest, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

include_all_minor is the same as having the proposed only_latest, no?

Yeah, just the opposite :) Not crucial, just sounds more straightforward than 'only_latest=false'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, by the way minor is the y part so do you mean include_all_patch_versions?

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, by the way minor is the y part so do you mean include_all_patch_versions?

right, tried to shorten 'include all for each minor', naming is hard:) maybe can be just 'all_versions' and explain in the description what is returned exactly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good
Thanks!

danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
* MGMT-12996: enhancement for dynamic OCP fetching

Suggesting how assisted-service and assisted-installer UI can be
adjusted to deliver all versions in the upgrade-channel API without the
need of specified configuration.

* Apply suggestions from reviews

Mainly around those points:
* Mentioning more explicitly how assisted-image-service cops with the
  changes.
* Provide more APIs for better transparency and for the UI to be able to
  only fetch the relevant versions.
* Wording and repharsing changes.

* change to in-memory solution

* rename DYNAMIC_OPENSHIFT_RELEASES_CONFIG->RELEASE_SOURCES and Complete->Candidate

* mention the remaining minor issues in 'risks and mitigations' section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants