Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Disable web UI via build tag or runtime flag #47

Merged
merged 3 commits into from
Feb 28, 2022
Merged

Conversation

jlegrone
Copy link
Collaborator

@jlegrone jlegrone commented Feb 26, 2022

What changed?

Closes #33

Why?

Temporalite isn't always used in environments where a web UI is required or desired. Adding a build tag to disable the web UI is also a mitigation for #46.

How did you test it?

Added a unit test to ensure that the ui-server package is not part of the dependency graph when the headless build tag is specified, and also added this build tag to the test matrix in CI.

Potential risks

Is hotfix candidate?

No

@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2022

Codecov Report

Merging #47 (28ad064) into main (86a3b8e) will decrease coverage by 0.23%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   41.93%   41.70%   -0.24%     
==========================================
  Files          11       12       +1     
  Lines         725      729       +4     
==========================================
  Hits          304      304              
- Misses        399      403       +4     
  Partials       22       22              
Impacted Files Coverage Δ
cmd/temporalite/main.go 1.43% <0.00%> (+0.06%) ⬆️
cmd/temporalite/ui.go 0.00% <0.00%> (ø)

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 86a3b8e...28ad064. Read the comment docs.

@jlegrone jlegrone force-pushed the jlegrone/skip-ui branch 5 times, most recently from 6bd6654 to 57f04fb Compare February 26, 2022 01:55
@jlegrone jlegrone changed the title Disable web UI support via build tag Disable web UI support via build tag or runtime flag Feb 26, 2022
@jlegrone jlegrone changed the title Disable web UI support via build tag or runtime flag Disable web UI via build tag or runtime flag Feb 26, 2022
@jlegrone jlegrone marked this pull request as ready for review February 26, 2022 02:00
@jlegrone jlegrone enabled auto-merge (squash) February 28, 2022 15:56
@jlegrone jlegrone merged commit 493a727 into main Feb 28, 2022
@jlegrone jlegrone deleted the jlegrone/skip-ui branch February 28, 2022 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce option to disable UI server (ideally both at run and at build time)
3 participants