-
Notifications
You must be signed in to change notification settings - Fork 64
[3679] Split representation metadata from content #3864
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
Conversation
a39dc9d
to
4c813fd
Compare
90748e6
to
5e487c3
Compare
@gcoutable Could you rebase that PR once you are done with a first version of the command palette? Thanks |
c2529cd
to
3b145dc
Compare
a178a5f
to
4756e92
Compare
4756e92
to
8c2c366
Compare
8c2c366
to
8a8984a
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've not tested the code but if all the tests are green, we can be confident that it's not breaking everything :)
...mponents/portals/graphql/datafetchers/query/PortalViewRepresentationMetadataDataFetcher.java
Outdated
Show resolved
Hide resolved
...mponents/portals/graphql/datafetchers/query/PortalViewRepresentationMetadataDataFetcher.java
Outdated
Show resolved
Hide resolved
.../web/application/representation/controllers/EditingContextRepresentationMetadataFetcher.java
Outdated
Show resolved
Hide resolved
.../web/application/representation/controllers/MutationCreateRepresentationMetadataFetcher.java
Outdated
Show resolved
Hide resolved
.../web/application/representation/controllers/MutationDeleteRepresentationMetadataFetcher.java
Outdated
Show resolved
Hide resolved
...re/src/main/resources/db/changelog/2024.11/01-split-representation-metadata-from-content.xml
Show resolved
Hide resolved
.../org/eclipse/sirius/web/application/controllers/portal/PortalControllerIntegrationTests.java
Outdated
Show resolved
Hide resolved
.../org/eclipse/sirius/web/application/controllers/portal/PortalControllerIntegrationTests.java
Outdated
Show resolved
Hide resolved
packages/sirius-web/backend/sirius-web/src/test/resources/scripts/initialize.sql
Outdated
Show resolved
Hide resolved
packages/sirius-web/backend/sirius-web/src/test/resources/scripts/migration.sql
Outdated
Show resolved
Hide resolved
9e4db16
to
57bf1a2
Compare
Regarding the fact that we are creating representation metadata and representation content in the |
798c9f5
to
70b74f3
Compare
abf1b9c
to
0a9058e
Compare
Ok I can live with this if it comes in the next PR but updating two bounded contexts in the same transaction should never be done. If the two bounded contexts are tightly connected, they may be one bounded contexts with multiple aggregate. In this case, I wouldn't be surprised to see both RepresentationMetadata and RepresentationContent consolidated in a single bounded context We will see after the other PR(s). |
Bug: #3679 Signed-off-by: Guillaume Coutable <guillaume.coutable@obeo.fr>
0a9058e
to
f2b010e
Compare
I tried the change yesterday, and since that was working I pushed it in that PR. |
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:
andpr:
labels been added to the pull request? (In case of doubt, start with the labelspriority: low
andpr: to review later
)area:
,difficulty:
,type:
)CHANGELOG.adoc
been updated to reference the relevant issues?CHANGELOG.adoc
? (Including changes in the GraphQL API)CHANGELOG.adoc
? For example indoc/screenshots/2022.5.0-my-new-feature.png
Architectural decision records (ADR)
[doc]
?CHANGELOG.adoc
?Dependencies
CHANGELOG.adoc
?CHANGELOG.adoc
?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)
useQuery<DATA_TYPE, VARIABLE_TYPE>(…)
useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)
useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)
useState<STATE_TYPE>(…)
?.
(if the GraphQL API specifies that a field cannot benull
, do not treat it has potentiallynull
for example)let diagram: Diagram | null = null;
)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
Please describe here the various use cases to test this pull request