Skip to content

Refactor the cmd router away - #20253

Merged
hennevogel merged 1 commit into
openSUSE:masterfrom
hennevogel:refactoring/distribution-refresh
Sep 4, 2026
Merged

Refactor the cmd router away#20253
hennevogel merged 1 commit into
openSUSE:masterfrom
hennevogel:refactoring/distribution-refresh

Conversation

@hennevogel

Copy link
Copy Markdown
Member

We already have a router, no need to invent another one via parameters...

Also:

  • Only render an error if FetchRemoteDistributionsJob has gone wrong
  • Rspec can do POST requests, no need for Net::HTTP

@github-actions github-actions Bot added Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app Test Suite / CI 💉 Things related to our tests/CI labels Sep 2, 2026
@hennevogel

Copy link
Copy Markdown
Member Author

For the record: Still a bad idea to invent an API route to workaround timing issues in a smoke test...

Comment thread src/api/app/controllers/distributions_controller.rb
@hennevogel
hennevogel force-pushed the refactoring/distribution-refresh branch 4 times, most recently from 3c2db98 to 1a1b3e7 Compare September 3, 2026 11:03
We already have a router, no need to invent another one via parameters...

Also:

- Only render an error if FetchRemoteDistributionsJob has gone wrong
- Rspec can do POST requests, no need for Net::HTTP
@hennevogel
hennevogel force-pushed the refactoring/distribution-refresh branch from 997dfa4 to 3ba8e43 Compare September 3, 2026 15:01
@hennevogel
hennevogel merged commit 63da0a0 into openSUSE:master Sep 4, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app Test Suite / CI 💉 Things related to our tests/CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants