Skip to content

Implemented uniformal xml insertion when creating an adapter or configuration file#550

Merged
philipsens merged 12 commits into
masterfrom
fix/default-xml-insertion
Jun 23, 2026
Merged

Implemented uniformal xml insertion when creating an adapter or configuration file#550
philipsens merged 12 commits into
masterfrom
fix/default-xml-insertion

Conversation

@stijnpotters1

@stijnpotters1 stijnpotters1 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

first merge #549

@stijnpotters1 stijnpotters1 self-assigned this Jun 15, 2026
@stijnpotters1 stijnpotters1 linked an issue Jun 15, 2026 that may be closed by this pull request
@stijnpotters1 stijnpotters1 force-pushed the fix/default-xml-insertion branch from 3cc6324 to 2c2ffdf Compare June 17, 2026 07:03

@Matthbo Matthbo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

2 things

I see that creating a new adapter now also returns the xmlcontent to the frontend, why is this done like this instead of returning a http 204 and loading the content once the file is opened?
You now look through the adapters inside the xml to open the file in the studio but isnt there existing functionality for this? Or maybe creating a new file doenst immedately have to open it in the studio but instead open the studio file browser on the right folder so the user can choose

I see a lot of replace('\\', '/'), maybe we should always do this to paths coming from the filesystem so we dont have to do this everywhere all the time in both back and frontend

@stijnpotters1 stijnpotters1 requested a review from Matthbo June 22, 2026 11:40

@Matthbo Matthbo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I still see a few strange places in the frontend where normalizePath() is used, are you sure the paths can't be normalized before getting to those points?

Other than that a couple of small things but looks good so far!

Comment thread src/main/frontend/app/components/file-structure/use-file-tree-context-menu.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

@stijnpotters1 stijnpotters1 requested a review from Matthbo June 23, 2026 11:36
@philipsens philipsens merged commit 1212d75 into master Jun 23, 2026
5 checks passed
@philipsens philipsens deleted the fix/default-xml-insertion branch June 23, 2026 22:54
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.

When adding a new xml file, add sample adapter

3 participants