Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

FLPATH-405: etag & if-not-modified #402

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

RichardW98
Copy link
Contributor

What this PR does / why we need it:
return 304 if the value of if-not-modified in request header is equal to etag
Which issue(s) this PR fixes:
Fixes #405

Change type

  • New feature
  • Bug fix
  • Unit tests
  • Integration tests
  • CI
  • Documentation
  • Auto-generated SDK code

Impacted services

  • Workflow Service
  • Notification Service

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jun 6, 2023

@RichardW98: This pull request references FLPATH-405 which is a valid jira issue.

In response to this:

What this PR does / why we need it:
return 304 if the value of if-not-modified in request header is equal to etag
Which issue(s) this PR fixes:
Fixes #405

Change type

  • New feature
  • Bug fix
  • Unit tests
  • Integration tests
  • CI
  • Documentation
  • Auto-generated SDK code

Impacted services

  • Workflow Service
  • Notification Service

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -45,6 +46,6 @@ public class WorkFlowStatusResponseDTO {
private WorkStatus status;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<WorkStatusResponseDTO> works;
private transient List<WorkStatusResponseDTO> works;
Copy link
Collaborator

Choose a reason for hiding this comment

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

if this one is transient, shouldn't the annotation be changed to @JsonIgnore or should it remain serialized to json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need it to be serialized. sonarlint requires jsonignore or transient, so I have to pick one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is dto, so I think transient won't afffect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i rolled back all the serialzable implement. obj.hashcode() doesn't need it

@openshift-ci
Copy link

openshift-ci bot commented Jun 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: masayag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gciavarrini
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 8, 2023
@openshift-merge-robot openshift-merge-robot merged commit 2033108 into parodos-dev:main Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants