Skip to content
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

Backlogitem and comment crud #12

Merged
merged 6 commits into from
Dec 20, 2023
Merged

Conversation

Higunio320
Copy link
Collaborator

No description provided.


@Override
@PutMapping(BACKLOG_ITEM_COMMENT_UPDATE_MAPPING)
public BacklogItemCommentResponse updateComment(
Copy link
Owner

Choose a reason for hiding this comment

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

final

BacklogItemCommentResponse deleteComment(long commentId);

BacklogItemCommentResponse getComment(long commentId);

Copy link
Owner

Choose a reason for hiding this comment

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

co tu się stało XD ?


@Override
@GetMapping(BACKLOG_ITEM_GET_MAPPING)
public BacklogItemResponse getById(@RequestParam long id) {
Copy link
Owner

Choose a reason for hiding this comment

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

final

private static final String SAVING_AND_RETURNING_RESPONSE_OF = "Saving and returning response of: {}";

@Override
public BacklogItemResponse getById(long id) {
Copy link
Owner

Choose a reason for hiding this comment

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

final

private final ProjectMemberRepository projectMemberRepository;
private final BacklogItemMapper backlogItemMapper;

private static final String GETTING_BY_ID = "Getting {} by id: {}";
Copy link
Owner

Choose a reason for hiding this comment

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

Weź to wywal do jakiejś klasy z constantami bo za dużo tu tego

log.info(RETURNING_RESPONSE_OF, backlogItem);

return backlogItemMapper.backlogItemToBacklogItemDetails(backlogItem);
}
Copy link
Owner

Choose a reason for hiding this comment

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

Ofc te finale i buildery to zastosuj tutaj do każdego


public interface BacklogItemController {

public BacklogItemResponse getById(long id);
Copy link
Owner

Choose a reason for hiding this comment

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

po co w interfejsie dodajesz publici. Wszystko co jest w interfejsie musi być publiczne by basic.


public interface BacklogItemService {

public BacklogItemResponse getById(long id);
Copy link
Owner

Choose a reason for hiding this comment

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

Tutaj to samo po co public

@Mapper(componentModel = "spring")
public interface BacklogItemCommentMapper {

public BacklogItemCommentResponse toBacklogItemCommentResponse(BacklogItemComment backlogItemComment);
Copy link
Owner

Choose a reason for hiding this comment

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

po co public

@Mapper(componentModel = "spring", uses = SprintMapper.class)
public interface BacklogItemMapper {

public BacklogItemResponse backlogItemToBacklogItemResponse(BacklogItem backlogItem);
Copy link
Owner

Choose a reason for hiding this comment

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

po co public

@Higunio320 Higunio320 merged commit 99b808c into main Dec 20, 2023
1 check failed
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