Skip to content

chore: updated documentation link #1387

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 3 commits into from
May 11, 2022

Conversation

Kira-Pilot
Copy link
Member

@Kira-Pilot Kira-Pilot commented May 11, 2022

Resolves #1037.

I didn't see any appropriate env variables being set on host so I assumed passing one in like CODER_VERSION=v0.5.4 ./develop.sh would suffice. This seems to work fine, but let me know if I misunderstood scope!

@Kira-Pilot Kira-Pilot requested a review from a team as a code owner May 11, 2022 13:56
@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #1387 (aee782e) into main (f581724) will decrease coverage by 0.18%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1387      +/-   ##
==========================================
- Coverage   66.97%   66.79%   -0.19%     
==========================================
  Files         288      288              
  Lines       18857    18857              
  Branches      241      241              
==========================================
- Hits        12630    12596      -34     
- Misses       4939     4963      +24     
- Partials     1288     1298      +10     
Flag Coverage Δ
unittest-go-macos-latest 54.04% <ø> (-0.02%) ⬇️
unittest-go-postgres- 65.33% <ø> (-0.09%) ⬇️
unittest-go-ubuntu-latest 56.32% <ø> (-0.13%) ⬇️
unittest-go-windows-2022 52.37% <ø> (-0.07%) ⬇️
unittest-js 74.24% <ø> (ø)
Impacted Files Coverage Δ
site/src/components/UserDropdown/UsersDropdown.tsx 96.15% <ø> (ø)
coderd/httpapi/httpapi.go 71.25% <0.00%> (-6.25%) ⬇️
provisioner/echo/serve.go 56.80% <0.00%> (-2.41%) ⬇️
coderd/workspaceagents.go 56.04% <0.00%> (-1.87%) ⬇️
provisionerd/provisionerd.go 76.30% <0.00%> (-1.34%) ⬇️
agent/agent.go 65.90% <0.00%> (-1.24%) ⬇️
peer/conn.go 78.13% <0.00%> (-0.74%) ⬇️
coderd/provisionerdaemons.go 62.98% <0.00%> (-0.51%) ⬇️
peerbroker/dial.go 83.60% <0.00%> (+6.55%) ⬆️

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 f581724...aee782e. Read the comment docs.

const env = process.env

beforeEach(() => {
jest.resetModules()
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma May 11, 2022

Choose a reason for hiding this comment

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

Wondering if we need this, I'm not seeing a module being mocked.

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've actually never mocked out process.env before so I'm definitely following some internet advice here 😃 but looking at the Jest docs, seems like each test file gets its own module registry by default. Trying to reset the cache with this line so we don't get any conflicts. I can test and see if it's not needed but it might be safer to leave it in. LMK what you think!

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma May 11, 2022

Choose a reason for hiding this comment

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

If it is not needed, I think we should remove it, but if you think it is needed, I'm good to keep it. I'm good with the decision you feel is the best 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure; we can always add it back in if we see conflicts.


beforeEach(() => {
jest.resetModules()
process.env = { ...env }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since env is already receiving the process.env in line 14, I would guess we are doing this to clone the object, is that right?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right - I don't want to mutate process.env IRL.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If makes sense, I just would add a comment about this.

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM. I just had some minor questions.

@Kira-Pilot Kira-Pilot merged commit e8e6d3c into main May 11, 2022
@Kira-Pilot Kira-Pilot deleted the update-documentation-link/kira-pilot branch May 11, 2022 21:10
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* chore: updated documentation link

* PR feedback
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.

Bug: Documentation in users menu goes to v1
2 participants