Skip to content

Add connector#286

Open
jesper-bruun wants to merge 1 commit into
masterfrom
DI-2881-update-dm3-sink
Open

Add connector#286
jesper-bruun wants to merge 1 commit into
masterfrom
DI-2881-update-dm3-sink

Conversation

@jesper-bruun

Copy link
Copy Markdown
Contributor

No description provided.

@jesper-bruun jesper-bruun requested review from ja7 and jbndbc as code owners June 1, 2026 13:08

@jbndbc jbndbc left a comment

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.

Kan vi ikke også omdøbe modulet fra commons/utils/rawrepo-update-dm3-service-connector til commons/utils/rawrepo-update-v3-service-connector

MARCCONV,
OPENUPDATE,
PERIODIC_JOBS,
RAWREPO_UPDATE_DM3,

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.

Kan vi ikke helt undgå at bruge dm3 i navne, men v3 i stedet. Det er meget mindre indforstået.

* REST connector for the rawrepo-v3 update-service.
* Instances of this class are thread safe as long as the underlying HTTP client is thread safe.
*/
public class RawrepoUpdateDm3ServiceConnector {

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.

RawrepoUpdateV3ServiceConnector

private static final RetryPolicy<Response> RETRY_POLICY = new RetryPolicy<Response>()
.handle(ProcessingException.class)
.handleResultIf(response ->
response.getStatus() == 404

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.

Er vi sikre på, at vi ikke hellere vil retry'e 500 i stedet for 404?

private final String baseUrl;
private final boolean validateOnly;

public RawrepoUpdateDm3ServiceConnector(Client httpClient, String baseUrl) {

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.

UserAgent bør gives med som argument.

Under alle omstændigheder tænker jeg ikke vi bør defaulte til RawrepoUpdateDm3ServiceConnector.class.getName(), med mindre der er tale om test.


~~Record-format konvertering~~ — ikke relevant.

Chunk-items indeholder ét JSON-objekt direkte (ikke ADDI):

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.

Jeg er ikke sikker på, at vi nøjes med denne struktur, men lad os lige stikke hovederne sammen.

@@ -0,0 +1,108 @@
# Plan: rawrepo-update sink (update-service v3)

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.

Er det et bevidst valg at planen er committed?

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.

2 participants