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

feat: Add history middleware parameters #129

Merged
merged 2 commits into from
Feb 1, 2022
Merged

feat: Add history middleware parameters #129

merged 2 commits into from
Feb 1, 2022

Conversation

kylecarbs
Copy link
Member

These will be used for streaming logs, checking status,
and other operations related to workspace and project
history.

These will be used for streaming logs, checking status,
and other operations related to workspace and project
history.
@kylecarbs kylecarbs self-assigned this Feb 1, 2022
@codecov
Copy link

codecov bot commented Feb 1, 2022

Codecov Report

Merging #129 (2a6b650) into main (78e652a) will increase coverage by 0.30%.
The diff coverage is 76.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
+ Coverage   70.31%   70.61%   +0.30%     
==========================================
  Files          96       98       +2     
  Lines        4254     4322      +68     
  Branches       68       68              
==========================================
+ Hits         2991     3052      +61     
- Misses       1018     1024       +6     
- Partials      245      246       +1     
Flag Coverage Δ
unittest-go-macos-latest 68.60% <76.47%> (+0.73%) ⬆️
unittest-go-ubuntu-latest 70.02% <76.47%> (+0.28%) ⬆️
unittest-go-windows-latest 67.97% <76.47%> (?)
unittest-js 64.62% <ø> (ø)
Impacted Files Coverage Δ
httpmw/projecthistoryparam.go 76.47% <76.47%> (ø)
httpmw/workspacehistoryparam.go 76.47% <76.47%> (ø)
peer/conn.go 77.86% <0.00%> (+0.52%) ⬆️
provisionerd/provisionerd.go 76.75% <0.00%> (+1.08%) ⬆️
peerbroker/listen.go 84.80% <0.00%> (+2.39%) ⬆️

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 78e652a...2a6b650. Read the comment docs.

Comment on lines +21 to +22
if !ok {
panic("developer error: project history param middleware not provided")
Copy link
Contributor

Choose a reason for hiding this comment

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

I like that we catch this sort of error right away

Copy link
Contributor

@bryphe-coder bryphe-coder left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kylecarbs kylecarbs enabled auto-merge (squash) February 1, 2022 22:05
@kylecarbs kylecarbs merged commit c5f1a37 into main Feb 1, 2022
@kylecarbs kylecarbs deleted the parammw branch February 1, 2022 22:10
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.

None yet

2 participants