Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(site): set min and max attributes for workspace number parameters #15182

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

Merged
merged 7 commits into from
Nov 22, 2024

Conversation

toshikish
Copy link
Contributor

Implements #14532.

This PR sets min and max attributes for workspace number parameter <input> elements using inputProps.

Note: When we update MUI to v6 or later, it is better to use slotProps.htmlInput instead.

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Oct 22, 2024
@matifali matifali requested review from a team and BrunoQuaresma and removed request for a team October 28, 2024 06:19
@matifali
Copy link
Member

Hi @toshikish, thank you for the contribution. Could you rebase your PR on main and make all the checks in CI pass? We should be able to review the contribution after that.

@toshikish toshikish force-pushed the set-min-max-for-workspace-parameters branch from 5b747f1 to 6c62431 Compare October 28, 2024 08:51
@toshikish
Copy link
Contributor Author

@matifali Hi, thank you for reviewing. I rebased the branch and fixed the lint and unit test errors found so far.

@toshikish
Copy link
Contributor Author

The cause of test-e2e-premium failure is that license is empty.
https://github.com/coder/coder/actions/runs/11565755422/job/32199523539?pr=15182#step:11:131

The environment variable CODER_E2E_LICENSE seems substituted through CI secret, but is it set correctly?
https://github.com/toshikish/coder/blob/set-min-max-for-workspace-parameters/.github/workflows/ci.yaml#L616

@matifali
Copy link
Member

matifali commented Oct 29, 2024

The cause of test-e2e-premium failure is that license is empty. coder/coder/actions/runs/11565755422/job/32199523539?pr=15182#step:11:131

The environment variable CODER_E2E_LICENSE seems substituted through CI secret, but is it set correctly? toshikish/coder@set-min-max-for-workspace-parameters/.github/workflows/ci.yaml#L616

Yes, it is, but unfortunately, the secret is not available on PRs made through branches outside of coder/coder.

@matifali matifali requested a review from sreya October 29, 2024 12:45
@sreya sreya removed their request for review October 29, 2024 12:58
@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 6, 2024
@BrunoQuaresma
Copy link
Collaborator

I think rebasing this PR from main should fix the e2e tests.

@github-actions github-actions bot removed the stale This issue is like stale bread. label Nov 7, 2024
@matifali
Copy link
Member

matifali commented Nov 7, 2024

@BrunoQuaresma unfortunately e2e tests can't work on forks as they don't have access to the repo secrets (the license).

Also we can't allow forks to have access to secrets in a safe way.

@matifali
Copy link
Member

@BrunoQuaresma COuld we run the e2e tests locally while we figure out a way to allow forks to run them?

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 20, 2024
@matifali matifali removed the stale This issue is like stale bread. label Nov 22, 2024
@matifali
Copy link
Member

@BrunoQuaresma Could you review it again? Thanks

@matifali matifali requested a review from a team November 22, 2024 08:58
@BrunoQuaresma
Copy link
Collaborator

@matifali the code didn't change from my last review so I think we are ready to go. My only concern is not being able to run the e2e tests using the premium license.

@matifali
Copy link
Member

@matifali', the code didn't change from my last review,' so I think we are ready to go. My only concern is not being able to run the e2e tests using the premium license.

Can we run them locally and approve if they pass, and force merge? We are tracking e2e tests for forks in #15557

@BrunoQuaresma
Copy link
Collaborator

@matifali Sure, I just don't have permission to force a merge. We have integration tests for this so I think we are safe to merge it right now. If it breaks something in the main, I can jump on it right away.

@sreya sreya merged commit e87b0bb into coder:main Nov 22, 2024
24 of 28 checks passed
@toshikish toshikish deleted the set-min-max-for-workspace-parameters branch November 26, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Pull Requests and issues created by the community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants