Skip to content

Commit

Permalink
KOGITO-9481: [SWF Dev UI] Workflows containing hyphens in their id ar…
Browse files Browse the repository at this point in the history
…e not listed in the workflow definitions tab - Part 2
  • Loading branch information
paulovmr committed Jun 27, 2023
1 parent 46d7959 commit 881428a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export const getProcessDefinitionList = (
.then((response) => {
const processDefinitionObjs = [];
const paths = response.paths;
const regexPattern = /^\/[^\n]+\/schema/;
const regexPattern = /^\/[^\n/]+\/schema/;
Object.getOwnPropertyNames(paths)
.filter((path) => regexPattern.test(path.toString()))
.forEach((url) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,10 @@ describe('process definitions section', () => {
SwaggerParser.parse['mockImplementation'](() =>
Promise.resolve({
paths: {
'/hiring-process/some-task/schema': {
get: {},
post: {}
},
'/hiring-process/schema': {
get: {},
post: {}
Expand Down

0 comments on commit 881428a

Please sign in to comment.