Skip to content

feat: integrate news service into backend - #4060

Open
thoniTUB wants to merge 6 commits into
developfrom
feat/integrate-news-service
Open

thoniTUB wants to merge 6 commits into
developfrom
feat/integrate-news-service

Conversation

@thoniTUB

Copy link
Copy Markdown
Collaborator

No description provided.

@thoniTUB
thoniTUB added this pull request to stack #4034 September 30, 2026 12:48
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch 2 times, most recently from 1d15b28 to 0ca6d76 Compare September 30, 2026 12:59
@thoniTUB thoniTUB changed the title integrates news service into backend feat: integrate news service into backend Oct 1, 2026
@thoniTUB thoniTUB closed this Oct 1, 2026
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch from c9cb8f9 to 2847720 Compare October 1, 2026 07:20
@thoniTUB thoniTUB reopened this Oct 1, 2026
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch from d9eb88e to 2b0d7a5 Compare October 1, 2026 07:33
@thoniTUB
thoniTUB marked this pull request as ready for review October 1, 2026 07:33
@thoniTUB
thoniTUB requested a review from awildturtok as a code owner October 1, 2026 07:33
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch from 2b0d7a5 to 0a677ab Compare October 1, 2026 08:24
@POST
@Consumes(MediaType.APPLICATION_JSON)
public Response addNewsItem(NewsItem newsItem, @Context UriInfo uriInfo) throws IOException {
if(newsItem == null) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

=> Anno?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Habe das ExceptionMapping zurück gedreht und nutze das bisherige nicht den RFC

return Response.status(Response.Status.CREATED).entity(newsItem).build();
}
catch(ConstraintViolationException exception) {
String detail = exception.getConstraintViolations().stream()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

kannst du die validation nicht rausziehen? das hat bisschen was von Exception-Oriented-Programming :/

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ich habe die RFC 9457 anpassungen wieder rausgenommen

@Delegate
private NewsService newsService;

public ManagedNewsService(NewsConfiguration configuration, Validator validator) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

RequiredArgsCtor


private final NewsService newsService;
@PathParam(DATASET)
DatasetId datasetId;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

implicit package?

item.link(),
item.date()
)
).toList();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

glaube du musst die nicht toListen?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Dann müsste ich einen Stream zurückgeben, der implizit zu einer Liste gemacht wird. Liste ist hier praktischer, da es dann später explizit auch zu einer OpenApi Spec gematched werden kann

this.newsItemReader = om.readerFor(FileSystemNewsItem.class);
this.newsItemWriter = om.writerFor(FileSystemNewsItem.class);

Files.createDirectories(newsFolder);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

knallt das wenn die schon existieren?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Nope, das ist wie mkdir -pr ...

@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch 2 times, most recently from aac0822 to b2ae18e Compare October 7, 2026 10:22
Base automatically changed from feature/news-provider to develop October 13, 2026 12:07
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch from b2ae18e to 937cf6b Compare October 13, 2026 12:08
@thoniTUB
thoniTUB requested a review from awildturtok October 27, 2026 13:54
@thoniTUB
thoniTUB force-pushed the feat/integrate-news-service branch from d185459 to 2987a05 Compare October 27, 2026 13:55

This branch has not been deployed

No deployments
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