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

CLDR-16838 Login bug; preliminary refactoring, clean-up; phase BETA not deprecated #3386

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

btangmu
Copy link
Member

@btangmu btangmu commented Nov 7, 2023

-Delete dead code and fix compiler warnings in WebContext.java, SurveyMain.java, and related files

-Remove the Deprecated label for the phase BETA since we still use it

-Delete the other deprecated phases and dependent code

-Add warning comments for methods that appear unused but are still accessed by jsp

-Comments

CLDR-16838

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

…ot deprecated

-Delete dead code and fix compiler warnings in WebContext.java, SurveyMain.java, and related files

-Remove the @deprecated label for the phase BETA since we still use it

-Delete the other deprecated phases and dependent code

-Add warning comments for methods that appear unused but are still accessed by jsp

-Comments
@btangmu btangmu self-assigned this Nov 7, 2023
@btangmu btangmu marked this pull request as ready for review November 7, 2023 18:39
*/
@Deprecated
BETA("Beta", CheckCLDR.Phase.SUBMISSION);
Copy link
Member Author

@btangmu btangmu Nov 7, 2023

Choose a reason for hiding this comment

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

I started to delete BETA along with the other deprecated items, then noticed that we did use BETA at the start of v44, and there's a lot of dependent code on both the front and back ends. Unlike the other deprecated items, which have caused a lot of confusion due to their overlapping/redundant meanings, BETA seems like it may still be useful and isn't likely to be used accidentally. It shouldn't be deprecated unless we actually intend to remove it.

@btangmu btangmu requested a review from srl295 November 7, 2023 18:48
if (CookieSession.tooManyObservers()) {
if (session != null) {
// allow in administrator or TC.
if (!UserRegistry.userIsTC(user)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is an auto-refactor by IntelliJ, to fix a warning about empty "if" block -- it comes out looking more complicated than it really is

Copy link
Member

Choose a reason for hiding this comment

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

makes sense. Though, It'd be easier to read if the refactor was a separate PR or at least a separate commit.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, this IS the refactor PR. I reread it. It looks like it has some wording cleanup too, which is fine. LGTM!

if (CookieSession.tooManyObservers()) {
if (session != null) {
// allow in administrator or TC.
if (!UserRegistry.userIsTC(user)) {
Copy link
Member

Choose a reason for hiding this comment

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

makes sense. Though, It'd be easier to read if the refactor was a separate PR or at least a separate commit.

if (CookieSession.tooManyObservers()) {
if (session != null) {
// allow in administrator or TC.
if (!UserRegistry.userIsTC(user)) {
Copy link
Member

Choose a reason for hiding this comment

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

Oh, this IS the refactor PR. I reread it. It looks like it has some wording cleanup too, which is fine. LGTM!

@btangmu btangmu merged commit dace6c6 into unicode-org:main Nov 8, 2023
7 checks passed
@btangmu btangmu deleted the t16838_d branch November 8, 2023 19:14
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