From a7a7828c258fbbcbf5c14e70bcedb200aea2b91c Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 17 Dec 2024 12:41:23 -0600 Subject: [PATCH] CLDR-18165 cla: sso: additional cleanup, fix tests - add tests - other cleanup per code review - support the "employer asserts no rights" round trip --- tools/cldr-apps/js/src/esm/cldrCla.mjs | 1 + tools/cldr-apps/js/src/views/SignCla.vue | 33 ++++++++++++++----- .../org/unicode/cldr/web/ClaSignature.java | 1 + .../cldr/web/auth/GithubLoginFactory.java | 14 +------- .../unicode/cldr/web/auth/LoginFactory.java | 2 +- .../unicode/cldr/web/TestClaGithubList.java | 2 +- 6 files changed, 29 insertions(+), 24 deletions(-) diff --git a/tools/cldr-apps/js/src/esm/cldrCla.mjs b/tools/cldr-apps/js/src/esm/cldrCla.mjs index 90ce7eac47a..c52f9ed7c0a 100644 --- a/tools/cldr-apps/js/src/esm/cldrCla.mjs +++ b/tools/cldr-apps/js/src/esm/cldrCla.mjs @@ -4,6 +4,7 @@ import * as cldrNotify from "../esm/cldrNotify.mjs"; * see ClaSignature.java * @typedef {Object} ClaSignature * @property {boolean} corporate true if a corporate signature + * @property {boolean} noRights true if employer asserts no rights * @property {string} email * @property {string} employer * @property {string} name diff --git a/tools/cldr-apps/js/src/views/SignCla.vue b/tools/cldr-apps/js/src/views/SignCla.vue index 997484d46be..1296c429ab3 100644 --- a/tools/cldr-apps/js/src/views/SignCla.vue +++ b/tools/cldr-apps/js/src/views/SignCla.vue @@ -135,21 +135,21 @@ - + I am contributing as an individual because I am self-employed or unemployed. I have read and agree to the foregoing terms. - + I am contributing as an individual because, even though I am employed, my employer has no rights and claims no rights to my contributions. I have read and agree to the foregoing terms. - + I am employed and my employer has or may have rights in my contributions under my employment agreement and/or the work for hire doctrine or similar legal principles. - + My employer has already signed the CLA and is listed on Unicode’s List of Corporate CLAs +
assertThat(s.keySet()) .containsExactlyInAnyOrder( - "TEST$ind-signer", "TEST$revokr", "TEST$corp-signer"), + "TEST$ind-signer", "TEST$revoker", "TEST$corp-signer"), () -> assertEquals(SignStatus.signed, s.get("TEST$ind-signer").getSignStatus()), () -> assertEquals(SignStatus.signed, s.get("TEST$corp-signer").getSignStatus()), () -> assertEquals(SignStatus.revoked, s.get("TEST$revoker").getSignStatus()));