-
Notifications
You must be signed in to change notification settings - Fork 590
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
refactor: add base path in Operate and Tasklist apps urls #18604
Conversation
Operate Test Results132 files ±0 132 suites ±0 8m 15s ⏱️ +25s For more details on these failures, see this check. Results for commit 3b1ed0a. ± Comparison against base commit 01c1855. ♻️ This comment has been updated with latest results. |
8faadd0
to
23e0642
Compare
Tasklist Test Results143 files ± 0 143 suites ±0 1h 27m 2s ⏱️ - 16m 6s Results for commit d6e6238. ± Comparison against base commit 0283ee6. This pull request removes 13 and adds 15 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
01a7763
to
f4e79f3
Compare
f4e79f3
to
63a3a56
Compare
Operate Integration Tests Results525 tests 523 ✅ 7m 57s ⏱️ Results for commit d6e6238. ♻️ This comment has been updated with latest results. |
577b40f
to
7907345
Compare
7907345
to
6c94d23
Compare
…cProcessController
For transparency, a discussion with @vsgoulart about public-forms E2E test that always fail the first time on this branch, but always passes on main: On
On this branch, as the To fix this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@houssain-barouni There is an issue with the local dev environment the Operate FE team is using.
- if you run
yarn start
inoperate/client/
, Operate provides a hot reload dev environment running atlocalhost:3000
- with your changes
/client-config.js
can't be retrieved anymore in that dev environment
I think the reason for this is that we use a middleware (see setupProxy.js) to redirect localhost:3000/client-config.js
to localhost:8080/client-config.js
. But now it needs to be redirected to localhost:8080/operate/client-config.ts
So you would either move client-config.ts or redirect to localhost:8080/operate/client-config.ts
I added the base path in setupProxy.js , and tested that is working with |
b54c353
to
63e69d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that everything works fine. There is just one change needed in the playwright.config (see my comment there).
if (baseURL && baseURL.endsWith('/')) { | ||
baseURL = baseURL.slice(0, -1); | ||
} | ||
|
||
// Important: make sure we authenticate in a clean environment by unsetting storage state. | ||
const page = await browser.newPage({storageState: undefined}); | ||
await page.goto(`${baseURL}/login`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Maybe you can utilize URL
here instead of manually stripping the trailing slash. This should also remove any double slashes:
new URL('/login', baseURL).toString()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pedesen
new URL('/login', baseURL).toString()
uses absolute path and would return http://localhost:8080/login
instead of http://localhost:8080/operate/login
I can use absolute path new URL('/operate/login', baseURL).toString()
but that would make the other CIs failing like a11y
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For transparency: We discussed to leave it as it is, because it was not possible to use new URL
without breaking other things.
Co-authored-by: Patrick Dehn <pedesen@users.noreply.github.com>
This reverts commit 7fdc6cb.
Description
The Camunda single application should serve Zeebe, Operate and Tasklist using one running application.
To dispatch between Operate and Tasklist UIs, we need to add
/operate
and/tasklist
base paths to the URLs respectively used by Operate and Tasklist UIsFor consistency, the same base paths will be used when Operate and Tasklist are run in standalone mode.
/tasklist
and/operate
are redirected to Tasklist or Operate index file/tasklist
or/operate
depending on the used profile in standalone mode, it defaults to/operate
in single application mode.http://localhost:8080/processes
) will not be working, the app base path should be provided in the URL (examplehttp://localhost:8080/tasklist/processes
)/new/{bpmnProcessId}
do not require the base path and will continue to be working as they are served by a dedicated endpoint in backend.Related issues
relates to #18535