From d5926729ad4e5e4ad8c42010e7288cac8df5235d Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Fri, 1 Mar 2024 17:26:03 -0500 Subject: [PATCH] Updated Mizuno's templates for the sign up page, and added a new template for Walmart. New script for Zenjob to remove a bunch of people from an internal testing group. --- .../_sign-up-follow-up-dropdown.html.liquid | 48 +++++++++--------- .../sign-up-follow-up-dropdown.html.liquid | 50 +++++++++---------- ...learning_path_completed_banner.html.liquid | 30 +++++++++++ CustomerNotes/Anthology/Anthology.md | 13 +++++ .../Walmart_Luminate/Walmart_Luminate.md | 8 +++ .../API_Tests/get_ppl_in_group_and_remove.py | 39 +++++++++++++++ Todos.md | 11 +++- 7 files changed, 148 insertions(+), 51 deletions(-) create mode 100644 Custom_Templates/customer_templates/Walmart Luminate Prod/_learning_path_completed_banner.html.liquid create mode 100644 Scripts/API_Tests/get_ppl_in_group_and_remove.py diff --git a/Custom_Templates/customer_templates/Mizuno Golf/_sign-up-follow-up-dropdown.html.liquid b/Custom_Templates/customer_templates/Mizuno Golf/_sign-up-follow-up-dropdown.html.liquid index 205dc175..9ab2f75d 100644 --- a/Custom_Templates/customer_templates/Mizuno Golf/_sign-up-follow-up-dropdown.html.liquid +++ b/Custom_Templates/customer_templates/Mizuno Golf/_sign-up-follow-up-dropdown.html.liquid @@ -6,40 +6,40 @@ required > + + - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - + + + + + + - + - - - - - - - diff --git a/Custom_Templates/customer_templates/Mizuno Golf/sign-up-follow-up-dropdown.html.liquid b/Custom_Templates/customer_templates/Mizuno Golf/sign-up-follow-up-dropdown.html.liquid index 6475d2d7..158370fe 100644 --- a/Custom_Templates/customer_templates/Mizuno Golf/sign-up-follow-up-dropdown.html.liquid +++ b/Custom_Templates/customer_templates/Mizuno Golf/sign-up-follow-up-dropdown.html.liquid @@ -5,42 +5,42 @@ id="sign-up-group-dropdown" required > + + - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - + + + + - - + + - + - - - - - - - + diff --git a/Custom_Templates/customer_templates/Walmart Luminate Prod/_learning_path_completed_banner.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Prod/_learning_path_completed_banner.html.liquid new file mode 100644 index 00000000..37eb8e14 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Luminate Prod/_learning_path_completed_banner.html.liquid @@ -0,0 +1,30 @@ +{% if learning_path.id == "fa4c61ac-e6cd-44dc-a8e0-9b95025968a5" %} +
+ +
+

Congratulations! You're Walmart Luminate Replenishment Certified!

+

Please share your new status by posting an announcement on LinkedIn or social media using your own post or you can copy the message below:

+ +
+
+{% else %} +
+ +
+

{% t .headline %}

+

{% t .description %}

+
+ {% if learning_path.certificate_link %} + {% t .actions.certificate %} + {% endif %} + {% t .actions.more_courses %} +
+
+
+{% endif %} diff --git a/CustomerNotes/Anthology/Anthology.md b/CustomerNotes/Anthology/Anthology.md index 72f8e7e1..429f0ed8 100644 --- a/CustomerNotes/Anthology/Anthology.md +++ b/CustomerNotes/Anthology/Anthology.md @@ -402,3 +402,16 @@ Items to Change for Dashboard: * CVue - needs to be deleted * Talisma - needs to be deleted * Radius - needs to be deleted + +## 03-01-2024 + +Two items from KC: + +* Shrinking frame bug - is it happening every time? Unsure + * Context: new set of people have manager permissions that this can't happen to. + * These people will panic if this happens. The bug is a blocker. + +* Data Questions: + * She could ask a data scientist + * Can we still add account groups (empty of courses) + * Can Amit handle the new domains and adding the accounts to the CSV. diff --git a/CustomerNotes/Walmart_Luminate/Walmart_Luminate.md b/CustomerNotes/Walmart_Luminate/Walmart_Luminate.md index da71a82b..20d60466 100644 --- a/CustomerNotes/Walmart_Luminate/Walmart_Luminate.md +++ b/CustomerNotes/Walmart_Luminate/Walmart_Luminate.md @@ -181,3 +181,11 @@ Off-the-record Chat: * Schedule a call for a roadmap visibility with Allyson and Joris. * Scott likely already has things in place. * SCORM files and loading very very slowly. Especially courses with a lot SCORM files. + +## 3/1/2024 + +Random notes for Luminate templates. + +https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Replenishment%20Certification&name=Walmart%20Luminate%20Replenishment%20Certification&organizationId=80427781&issueYear={{ this_year }}&issueMonth={{ this_month }}&expirationYear={{ next_year }}&expirationMonth={{ this_month }}&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com + +https://linkedin.com/profile/add/?startTask=Walmart%20Luminate%20Replenishment%20Certification&name=Walmart%20Luminate%20Replenishment%20Certification&organizationId=80427781&certUrl=https%3A%2F%2Fwalmartluminate.northpass.com diff --git a/Scripts/API_Tests/get_ppl_in_group_and_remove.py b/Scripts/API_Tests/get_ppl_in_group_and_remove.py new file mode 100644 index 00000000..246fcf9b --- /dev/null +++ b/Scripts/API_Tests/get_ppl_in_group_and_remove.py @@ -0,0 +1,39 @@ +import requests +import Apikeys + +BASEURL = "https://api.northpass.com/v2/" +APIKEY = Apikeys.ZENJOB +GROUPUUID = "940a5d24-32af-45f1-8ed4-8a6b4689d9c9" +HEADERS = {"accept": "application/json", "X-Api-Key": APIKEY} + + +def get_ppl_without_email_in_group(): + count = 0 + url = f"groups/{GROUPUUID}/memberships" + filter = "?filter[name][not_cont]=zenjob.com" + while True: + count += 1 + request_url = f"{BASEURL}{url}{filter}&page={count}" + response = requests.get(request_url, headers=HEADERS) + response = response.json() + next = response["links"] + + for ids in response["data"]: + person_uuid = ids["relationships"]["person"]["data"]["id"] + remove_from_group(person_uuid) + + if "next" not in next: + break + + +def remove_from_group(person_uuid): + url = f"people/{person_uuid}/relationships/groups" + request_url = f"{BASEURL}{url}" + payload = {"data": [{"id": GROUPUUID, "type": "membership-groups"}]} + response = requests.delete(request_url, json=payload, headers=HEADERS) + code = response.status_code + print(f"For person {person_uuid}, the returned code was {code}") + + +if __name__ == "__main__": + get_ppl_without_email_in_group() diff --git a/Todos.md b/Todos.md index 9779953a..29496527 100644 --- a/Todos.md +++ b/Todos.md @@ -68,8 +68,8 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th ## 02-29-2024 -- [ ] Renewal Tracker Tasks - start with Q2: - - [ ] Meet and tell CSMs. +- [-] Renewal Tracker Tasks - start with Q2: + - [-] Meet and tell CSMs. - [ ] CSMs to enter at least one above the line contact - if multiple, choose highest - [ ] Assign buddy as per Kat's message. Buddy's do not need to be notified. - [ ] Buddy is to ask for renewal sentiment. "Is there anything we need to be aware of for renewal?" Check LinkedIn for contacts. @@ -83,3 +83,10 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th }, false); ``` + +## 03-01-2024 + +- [ ] Ask Katie/KC for all the domain > account group mappings. +- [ ] Look into Looker Reporting for Group Count, at least 1% in progress, etc + - [ ] Report with Groups and Group Members Count +- [X] Test ILTs without dates for more than 1 session.