Skip to content

Add option to disable newsfeed in UI#1110

Merged
chaptersix merged 2 commits into
mainfrom
newsfeed-config-passthrough
Jul 7, 2026
Merged

Add option to disable newsfeed in UI#1110
chaptersix merged 2 commits into
mainfrom
newsfeed-config-passthrough

Conversation

@tomwheeler

@tomwheeler tomwheeler commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Related issues

Related to #1104

What changed?

This adds a command-line option that configures the embedded UI server to disable the news feed feature.

Checklist

Manual tests

Setup #1 (default case)

temporal server start-dev

Happy path #1 (default case)
Open the Web UI and observe that the news fetch feature is enabled, as it is by default. This is visible by way of a megaphone icon in the top navigation.

Setup two (feature disabled)

temporal server start-dev --ui-disable-news-fetch

Happy path two (feature disabled)
Open the Web UI and observe that the news fetch feature is disabled, since the environment variable is set to disable it, as described in the documentation. This is evident by the megaphone icon being omitted from the top navigation and the Web UI not making a request for the feed.

@tomwheeler tomwheeler requested a review from a team as a code owner July 6, 2026 19:56
@CLAassistant

CLAassistant commented Jul 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread internal/devserver/server.go Outdated
}

func (s *StartOptions) buildUIServer() *uiserver.Server {
disableNewsFetch, _ := strconv.ParseBool(os.Getenv("TEMPORAL_DISABLE_NEWS_FETCH"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we should silently fail here. I think it makes sense to include in the start options (unless those are generated somehow)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just pushed up another way of doing this. It's more consistent with the existing configuration of the UI server in the CLI.

Replace the TEMPORAL_DISABLE_NEWS_FETCH env var read in buildUIServer
with a proper --ui-disable-news-fetch CLI flag that flows through
StartOptions, matching the other --ui-* options.
@chaptersix

Copy link
Copy Markdown
Contributor

Replaced the env-var read with a --ui-disable-news-fetch flag that flows through StartOptions, matching the other --ui-* options.

Help output:

$ temporal server start-dev --help
...
      --ui-disable-news-fetch            Disable the Web UI newsfeed.
                                         When set, the UI will not
                                         request the newsfeed and the
                                         button to open the newsfeed
                                         panel is hidden.
...

Demo — start the dev server with it:

$ temporal server start-dev --ui-disable-news-fetch
Temporal CLI 0.0.0-DEV (Server 1.32.0-158.0, UI 2.50.1)

Temporal Server:      localhost:7233
Temporal Persistence: in-memory
Temporal UI:          http://localhost:8233
Temporal Metrics:     http://localhost:60955/metrics

@tomwheeler

Copy link
Copy Markdown
Contributor Author

Apologies for the delay on my part. I made my previous commit just before boarding a very long flight.

I built an executable from your updated code and verified that it works as expected. That is, when I run the temporal server start-dev command, the icon for the feed is visible in the top navigation and clicking it displays the news feed. If I disable it by running temporal server start-dev --ui-disable-news-fetch instead, the icon is hidden.

@chaptersix chaptersix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pending description and title update

@tomwheeler tomwheeler changed the title Disable newsfeed in UI based on TEMPORAL_DISABLE_NEWS_FETCH env var Add option to disable newsfeed in UI Jul 7, 2026
@chaptersix chaptersix merged commit f2a7159 into main Jul 7, 2026
10 checks passed
@chaptersix chaptersix deleted the newsfeed-config-passthrough branch July 7, 2026 15:15
chaptersix added a commit that referenced this pull request Jul 7, 2026
#1111)

## What changed?

Cherry-picks the News Feed disable feature to `release/1.8.x`:

- **#1109** — Bump ui-server to v2.50.1 (required for the News Feed
feature). Applied against the 1.8.x dependency baseline via `go mod
tidy` rather than pulling `main`'s full dependency tree, so
`go.temporal.io/api`, `sdk`, and `server` stay pinned at their 1.8.x
versions; only the transitive deps ui-server v2.50.1 requires were
bumped.
- **#1110** — Add `--ui-disable-news-fetch` option (and
`TEMPORAL_DISABLE_NEWS_FETCH` env binding) to disable the UI newsfeed.
Applied cleanly.

## Why?

Backport of the newsfeed-disable capability to the 1.8.x release line.

## How was this tested?

- `go build ./...`
- `make gen` (no drift; generated `commands.gen.go` matches)
- `go test ./internal/temporalcli/` (server/devserver command tests
pass)

---------

Co-authored-by: Tom Wheeler <tom@temporal.io>
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.

3 participants