Skip to content

[releng] Switch to Sirius Web 2026.3.2#2126

Merged
AxelRICHARD merged 1 commit intomainfrom
ari/rel/sw202632
Apr 8, 2026
Merged

[releng] Switch to Sirius Web 2026.3.2#2126
AxelRICHARD merged 1 commit intomainfrom
ari/rel/sw202632

Conversation

@AxelRICHARD
Copy link
Copy Markdown
Member

PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW

Auto review

  • Have you reviewed this PR? Please do a first quick review, It is very useful to detect typos and missing copyrights, check comments, check your code... The reviewer will thank you for that :)

Project management

  • Has the pull request been added to the relevant milestone?
  • Have the priority: and pr: labels been added to the pull request? (In case of doubt, start with the labels priority: low and pr: to review later)
  • Have the relevant issues been added to the pull request?
  • Have the relevant labels been added to the issues? (area:, type:)
  • Have the relevant issues been added to the same project milestone as the pull request?

Changelog and release notes

  • Has the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc been updated to reference the relevant issues?
  • Have the relevant API breaks been described in the CHANGELOG.adoc?
  • Are the new / upgraded dependencies mentioned in the relevant section of the CHANGELOG.adoc?
  • In case of a change with a visual impact, are there any screenshots in the doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a key change, has the change been added to Key highlights section in doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?

Documentation

  • Have you included an update of the documentation in your pull request? Please ask yourself if an update (installation manual, user manual, developer manual...) is needed and add one accordingly.

Tests

  • Is the code properly tested? Any pull request (fix, enhancement or new feature) should come with a test (or several). It could be unit tests, integration tests or cypress tests depending on the context. Only doc and releng pull request do not need for tests.

Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
@pcdavid pcdavid self-assigned this Apr 8, 2026
Comment on lines +84 to +100
@DisplayName("GIVEN the SysON REST API, WHEN we ask for projects, THEN created dates should be serialized as ISO-8601 strings")
@GivenSysONServer({ SimpleProjectElementsTestProjectData.SCRIPT_PATH })
@Test
public void givenSysONRestAPIWhenWeAskForProjectsThenCreatedDatesShouldBeSerializedAsISO8601Strings() {
var webTestClient = WebTestClient.bindToServer()
.baseUrl(this.getHTTPBaseUrl())
.build();

var uri = String.format("/api/rest/projects");
webTestClient.get()
.uri(uri)
.exchange()
.expectStatus()
.isOk()
.expectBody()
.jsonPath("$[0].created").isEqualTo("1970-01-01T00:00:00Z");
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any particular reason to have this here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes with the latest changes in SysMLv2SerializerConfig I was not sure about the date fields and noticed that we didn't have a test about it.

module.addSerializer(Element.class, new SysMLv2JsonSerializer());
this.customObjectMapper.registerModule(module);
this.customObjectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
this.customObjectMapper.registerModule(new JavaTimeModule());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not familiar with these APIs, but just to be sure it's not been removed by mistake: we don't need new JavaTimeModule() anymore?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No it seems not needed anymore.

@AxelRICHARD AxelRICHARD merged commit a3dfac3 into main Apr 8, 2026
3 of 4 checks passed
@AxelRICHARD AxelRICHARD deleted the ari/rel/sw202632 branch April 8, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants