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

Clean up HTTP authentication reference and Update constructors #562

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

programbeginnerTW
Copy link

  1. Clean up HTTP authentication reference
  2. Update constructors in JiraSite.java and JireSiteTest.java
  3. Leave the @Deprecated annotation in case any error should occur
  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did

2. Update constructors in JiraSite.java and JireSiteTest.java
3. Leave the `@Deprecated` annotation in case any error should occur
@@ -263,7 +263,8 @@ public JiraSite(
boolean updateJiraIssueForAllStatus,
@CheckForNull String groupVisibility,
@CheckForNull String roleVisibility,
boolean useHTTPAuth) {
boolean useHTTPAuth,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove all deprecated constructors, it they are there for quite a while.

Copy link
Author

Choose a reason for hiding this comment

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

Revision finished, waiting for your review!

@@ -1417,6 +1396,7 @@ static class Builder {
private String groupVisibility;
private String roleVisibility;
private boolean useHTTPAuth;
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop this as well

Copy link
Author

Choose a reason for hiding this comment

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

Revision finished, waiting for your review!

@@ -647,7 +623,8 @@ protected Object readResolve() {
updateJiraIssueForAllStatus,
groupVisibility,
roleVisibility,
useHTTPAuth);
useHTTPAuth,
Copy link
Contributor

Choose a reason for hiding this comment

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

@olamy I think this whole if migration block is there for a long time as well, everyone should have already migrated those credentials so I propose to drop this whole if as well?

@programbeginnerTW
Copy link
Author

Is there anything I should do toward this pull request? @rantoniuk

@olamy
Copy link
Member

olamy commented Jul 26, 2023

I don't remember if this is serialized or not? because changing a field will break existing configuration

@rantoniuk
Copy link
Contributor

@olamy correct me if I'm wrong, but from what I remember, everything that is not @transient is serialized when JiraSite is saved.

So we would need to:

  • deprecate the constructor and the field that we want to drop + make that field transient
  • release that
  • and afterwards in the next release cycle drop everything

(or alternatively again write some "migrator" that we did already in the past, but I'm just looking for a simpler solution..) When I have some time, I'll try to run some local tests to see which approach works, but maybe you already know what to suggest.

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.

3 participants