From 8385bd1240018ca23ce390bb6984ff89291df0ed Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 3 Sep 2024 18:34:32 -0400 Subject: [PATCH] Changed some migration scripts. Getting closed! Walmart notes. --- CustomerNotes/Walmart/Walmart.md | 6 ++ Scripts/API_Tests/Apikeys.py | 1 + .../__pycache__/Apikeys.cpython-310.pyc | Bin 1411 -> 1456 bytes Scripts/API_Tests/bulk_invite_and_props.py | 12 +-- .../mark_course_as_complete.py | 83 +++++++++++------- .../Migration_tool/migration_playground.py | 38 +++++++- 6 files changed, 102 insertions(+), 38 deletions(-) diff --git a/CustomerNotes/Walmart/Walmart.md b/CustomerNotes/Walmart/Walmart.md index 716e0b40..e4917590 100644 --- a/CustomerNotes/Walmart/Walmart.md +++ b/CustomerNotes/Walmart/Walmart.md @@ -1044,3 +1044,9 @@ This could be anything from an incorrect redirect, image not being displayed cor Walmart meeting with Jessica and Mayra. Questions from Jessica: * Automatic PDF with publishing. 99% done! * Feedback from drivers - does blob storage help this project? Not really. The mechanism between capturing and sending feedback has too many variables. + +## 09-03-2024 + +Spark is changing quickly +It's hard for them to go from "we'll get it done!" to "Let's see if it is on the roadmap." +Brent - what can we do to minimize this anxiety? diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index c178e9d2..3721760a 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -27,3 +27,4 @@ SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj" LUMINATE_US = "p5fidpuedHaOlPnd8EcpxzQMG" SKAN = "89qJQDaFl3DvIpSSOUC5PM9V6" KARBON = "peQbnkfUnYLGPfIzyCxfLs634" +BLOOMERANG = "ewGDqLgsklMnytqzUka2wmgIi" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index 6ab1b9fca684b2042fd2e03ae00fb486ba875e4a..7cdc89f0b330cb8fa51b59bb8056268855c6ec51 100644 GIT binary patch delta 132 zcmZqX-oVY9&&$ij00d4_*VA@S>S^`%96sW(CkE`^4xUKOg~MzDAr)_P*0azlb0}`WsI6!#8M`Di_6K!-{03Y$kESz hB|{N2(D)+e$sbul*ld7I7KX`ztOk?gSviOE80`?8Y@8nYjHlWusVwy+b`+q9z|^ jKFfG(@ course_resources + # 'sections', --> section_resources + # 'activities', --> activity_recourds + # 'people', --> person_resources + # 'enrollments', --> enrollment_resources + # 'course_attempts', --> course_attempt_resources + # 'quiz_attempts', --> quiz_attempt_resources + # 'certificates', + # 'learning_path_attempts --> learning_path_attempt_resources ("/v2/migration/projects/{project_id}/items/{item_id}", "get", "delete"), # ************************* # Get Resources (Done after you've added them from below) @@ -162,6 +172,30 @@ def get_specific_project(): url = f"{BASEURL}/projects/{proj_id}" calls.get(url) +def create_course(): + project_id = "6c7a21c2-de35-4b9d-9b80-a235401783af" + item_id = "80b95e38-78d1-44b9-8d9f-be96d9c7bf6e" + learner_uuid = "101d891d-f145-4cb2-8f7f-f0d8a90a743e" + course_uuid = "0d41bb57-bc65-4e05-adfd-58436ed0bd50" + now = datetime.now() + formatted_now = now.strftime("%Y-%m-%d %H:%M:%S") + course_url = f"{BASEURL}/projects/{project_id}/items/{item_id}/course_resources" + course_payload = { + "data": [ + { + "attributes": { + "type": "course", + "uuid": "", + "display_name": "", + "name": "", + "short_description": "", + "full_description": "", + "navigation_mode": "", + } + } + ] + } + def create_enrollment(): # important!! Received this error: @@ -273,9 +307,9 @@ if __name__ == "__main__": # delete_all_projects() # read_json_docs() # create_project() - # get_all_projects() + get_all_projects() # get_specific_project() # create_enrollment() # check_resources() - get_item() + # get_item() # create_attempt()