Skip to content

Conversation

@khanhtc1202
Copy link
Member

@khanhtc1202 khanhtc1202 commented Jun 7, 2022

What this PR does / why we need it:

This PR makes the piped upgrade version input box selectable. The versions list is the first 6 items (6 latest releases - pre-release excluded) from pipecd github repo. The request for that versions list from github is done by pipecd control plane and web only fetches that list each time the settings/piped page is loaded.

Kapture.2022-06-07.at.14.08.33.mp4

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Make piped upgrade version input box selectable

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) June 7, 2022 07:16
// See the License for the specific language governing permissions and
// limitations under the License.

package githubstore
Copy link
Member

Choose a reason for hiding this comment

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

I wonder about the need for this package.
Currently, it is quite simple so which way is better: adding this package or implementing it directly in the API. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought the same too, but looks like the current web_api.go does not import any 3rd packages so I think maybe this package is needed 😅

Copy link
Member

Choose a reason for hiding this comment

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

There was no special reason for that fact. Just because we do not need any 3rd packages yet.
So importing that github package directly is fine to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, lets me address that. Thanks for clarifying 🙏

Copy link
Member Author

Choose a reason for hiding this comment

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

addressed by 26fb1c9

@nghialv
Copy link
Member

nghialv commented Jun 7, 2022

About the UI, how about keeping the version field as a text field box to allow users to input the desired version?
I feel that it is safer since the returned versions could not contain the desired version because of a few reasons. (e.g. GH API limit).

So the returned versions should just be the suggestions to choose from, and users still be able to input by text.
WDYT?

@khanhtc1202
Copy link
Member Author

khanhtc1202 commented Jun 7, 2022

About the UI, how about keeping the version field as a text field box to allow users to input the desired version? I feel that it is safer since the returned versions could not contain the desired version because of a few reasons. (e.g. GH API limit).

So the returned versions should just be the suggestions to choose from, and users still be able to input by text. WDYT?

tbh, I think the same too. On going commit 😂

@khanhtc1202
Copy link
Member Author

Kapture.2022-06-07.at.15.45.47.mp4

@nghialv I updated the input component to allow free text as version input, ptal

Copy link
Member

@nghialv nghialv left a comment

Choose a reason for hiding this comment

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

Thank you. Great improvement. Can't wait to deliver this.

Copy link
Member

@knanao knanao left a comment

Choose a reason for hiding this comment

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

Here you go!

@khanhtc1202 khanhtc1202 merged commit 18fa68d into master Jun 8, 2022
@khanhtc1202 khanhtc1202 deleted the add-piped-version branch June 8, 2022 01:37
@github-actions github-actions bot mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants