From 59d577b051a80233e2f94c48e1cc819adec12a52 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 29 Sep 2025 14:42:17 -0400 Subject: [PATCH] Tasks and Notes for Sandata's legal issue with a course being deleted. Downloaded spark pdf for them. --- Scripts/API_Tests/get_course_verify_name.py | 18 ++++++++++++++++++ Scripts/Walmart/Spark/resources_api.js | 2 +- Scripts/Walmart/Spark/single_resource.js | 2 +- Tasks.md | 11 +++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 Scripts/API_Tests/get_course_verify_name.py diff --git a/Scripts/API_Tests/get_course_verify_name.py b/Scripts/API_Tests/get_course_verify_name.py new file mode 100644 index 00000000..fc0c9490 --- /dev/null +++ b/Scripts/API_Tests/get_course_verify_name.py @@ -0,0 +1,18 @@ +import requests +import pprint +import Apikeys + +PP=pprint.PrettyPrinter(indent=4) +COURSEUUID = "2d3d0f6d-5ea4-49b6-9574-f4d563d9f042" +APIKEY = Apikeys.SPARKPROD +URL = f"https://api2.northpass.com/v2/courses/{COURSEUUID}/activities" +HEADERS = { "accept": "*/*", + "x-api-key": APIKEY, + "content-type": "application/json", +} + +course_get = requests.get(URL, headers=HEADERS)#.json +print(course_get.status_code) +print(course_get.text) +PP.pprint(course_get) + diff --git a/Scripts/Walmart/Spark/resources_api.js b/Scripts/Walmart/Spark/resources_api.js index ca22a9b2..2a29dfa1 100755 --- a/Scripts/Walmart/Spark/resources_api.js +++ b/Scripts/Walmart/Spark/resources_api.js @@ -7,7 +7,7 @@ const apiKey = "6hUfJdAartHTHhHc0WIRZYPWe" // const apiKey = "p5fidpuedHaOlPnd8EcpxzQMG" // Luminate Production ^ const uid = "/\?uid\=7beg87y4-fh24-4929-3rt5-24kdn87s5241"; -const groupIds = ['0c842067-fa16-485d-92f5-50895d3078e4'] +const groupIds = ['4835baaf-b332-4b59-8415-fb1c7c385308'] const getAllGroups = async (num) => { if(num === 1){ diff --git a/Scripts/Walmart/Spark/single_resource.js b/Scripts/Walmart/Spark/single_resource.js index ff860f10..2abdbea3 100644 --- a/Scripts/Walmart/Spark/single_resource.js +++ b/Scripts/Walmart/Spark/single_resource.js @@ -8,7 +8,7 @@ const apiKey = "6hUfJdAartHTHhHc0WIRZYPWe" // Luminate Production ^ const uid = "/\?uid\=7beg87y4-fh24-4929-3rt5-24kdn87s5241"; const groupIds = [ - '2aed7eac-321f-4ba2-9ee8-7f8c90006459' + '4835baaf-b332-4b59-8415-fb1c7c385308' ] const getAllGroups = async (num) => { diff --git a/Tasks.md b/Tasks.md index 7b159a85..ffb2a8ed 100644 --- a/Tasks.md +++ b/Tasks.md @@ -71,3 +71,14 @@ ## Workhuman - [X] Submit Publishing Request to product. Currently, WH shares direct-to-activtiy links from their community page to showcase certain features. For instance, one of their links [uses this url](https://community.workhuman.com/education/courses/bada004e-b721-4eed-86b2-9fc58edd3276/activities/eae94898-b7e5-4ce9-a4c9-568e8687d92a). If they add new activities, the users who click that link won't see them because they would need to click "Retake course" which doesn't exist. - [X] Ask about increasing the Password security policy for Customer Hub (CC+CE). The request from the Workhuman Infosec team is:"The password policy should require a minimum length of at least twelve characters to increase complexity and resistance to brute-force attacks. When two-factor authentication (2FA) is enforced, a minimum length of eight characters may be acceptable. Specific character class requirements, such as mandating uppercase letters, numbers, or symbols, should be avoided in favour of allowing any printable Unicode characters to encourage the use of passphrases. + +## Sandata +Easiest Solution: Dummy/New/Shell course with 0 enrollments so migrator will work flawlessly with the migration endpoint. This will result in Gainsight being much more confident about the 3k people having correct certificate and certificate dates. +If we cannot do the above, the edge cases to consider are: +- Any progress with active attempt - migrator will not run +- Completion after 9/8/2025 - regen cert but transcript may be different & increase complexity on how we run the script +- Question - what do to do with people between 9/3-9/8 +- In course enrollments tab for admin, enrollment date will be after completion date +- Does everyone who needs access to this new course, have access? +- Cert course name will remain even if course is renamed +- If someone completed it after 9/8 what is their "correct" certificate completion date?