diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index 5f51b936..8f0bb5bd 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc differ diff --git a/Scripts/API_Tests/get_all_people_toggle_prop.py b/Scripts/API_Tests/get_all_people_toggle_prop.py new file mode 100644 index 00000000..60ebf267 --- /dev/null +++ b/Scripts/API_Tests/get_all_people_toggle_prop.py @@ -0,0 +1,47 @@ +import requests +import Apikeys +import pprint + + + +pp=pprint.PrettyPrinter(indent=4) +APIKEY = Apikeys.DEEPL +BASEURL = "https://api.northpass.com/v2" +HEADERS = { + "accept": "application/json", + "X-Api-Key": APIKEY +} + +def get_people(): + count = 0 + while True: + ppl_uuids = [] + url = f"{BASEURL}/people?page={count}&limit=100" + print(url) + count += 1 + response = requests.get(url, headers=HEADERS).json() + for data in response['data']: + person_uuid = data['id'] + ppl_uuids.append(person_uuid) + if len(ppl_uuids) == 10: + print(len(ppl_uuids)) + apply_prop(ppl_uuids) + # break + +def apply_prop(ppl_uuids): + inserted_load = [] + for person in ppl_uuids: + print(person) + miniload = { + "attributes": { "properties": { "new_content": "true" } }, + "id": person, + "type": "person_properties" + } + inserted_load.append(miniload) + prop_url = f"{BASEURL}/properties/people/bulk" + payload = { "data": inserted_load } + print(payload) + # apply_payload = requests.posts(prop_url, json=payload, headers=HEADERS) + +if __name__ == "__main__": + get_people() diff --git a/Scripts/Skilljar/Apikeys.py b/Scripts/Skilljar/Apikeys.py new file mode 100644 index 00000000..f4757672 --- /dev/null +++ b/Scripts/Skilljar/Apikeys.py @@ -0,0 +1 @@ +NORMSANDBOX = "sk-live-1fe9249b2c81caa3cd7f336c8c080041762d82d4" diff --git a/Scripts/Skilljar/__pycache__/Apikeys.cpython-310.pyc b/Scripts/Skilljar/__pycache__/Apikeys.cpython-310.pyc new file mode 100644 index 00000000..492c2e11 Binary files /dev/null and b/Scripts/Skilljar/__pycache__/Apikeys.cpython-310.pyc differ diff --git a/Scripts/Skilljar/get_users.py b/Scripts/Skilljar/get_users.py new file mode 100644 index 00000000..3f04dc2d --- /dev/null +++ b/Scripts/Skilljar/get_users.py @@ -0,0 +1,13 @@ +import requests +import base64 +import Apikeys + +APIKEY = base64.b64encode(Apikeys.NORMSANDBOX.encode()).decode() +HEADERS = { "Authorization": f"Basic {APIKEY}" } +BASE = "https://api.skilljar.com/v1" + +url = f"{BASE}/users" +req = requests.get(url, headers=HEADERS).json() +print(req) + + diff --git a/Scripts/tmp.json b/Scripts/tmp.json index f9dd14dd..11ce4fa6 100644 --- a/Scripts/tmp.json +++ b/Scripts/tmp.json @@ -1 +1,110 @@ -{"data":[{"id":"ec77d3b5-3ad0-4a6f-a3a3-93b00b32cf73","type":"EventDelivery","attributes":{"name":"services.v2.events.plan.updated","attempt":1,"payload":{"data":{"type":"Plan","id":"79593263","attributes":{"created_at":"2025-03-24T16:35:23Z","dates":"May 4, 2025","files_expire_at":"2025-05-19T11:34:10Z","last_time_at":"2025-05-04T10:35:00Z","multi_day":false,"needed_positions_count":3,"other_time_count":1,"plan_notes_count":2,"plan_people_count":9,"planning_center_url":"https://services.planningcenteronline.com/plans/79593263","public":false,"rehearsal_time_count":2,"series_title":null,"service_time_count":2,"short_dates":"May 4","sort_date":"2025-05-04T09:05:00Z","title":null,"total_length":3945,"updated_at":"2025-04-23T19:52:42Z"},"relationships":{"service_type":{"data":{"type":"ServiceType","id":"966664"}},"series":{"data":null},"created_by":{"data":{"type":"Person","id":"3989836"}},"updated_by":{"data":{"type":"Person","id":"47417549"}},"linked_publishing_episode":{"data":null}},"links":{"all_attachments":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/all_attachments","attachments":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/attachments","attendances":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/attendances","autoschedule":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/autoschedule","contributors":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/contributors","import_template":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/import_template","item_reorder":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/item_reorder","items":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/items","live":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/live","my_schedules":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/my_schedules","needed_positions":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/needed_positions","next_plan":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/next_plan","notes":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/notes","plan_times":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/plan_times","previous_plan":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/previous_plan","series":null,"signup_teams":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/signup_teams","team_members":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/team_members","self":"https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263","html":"https://services.planningcenteronline.com/plans/79593263"}},"included":[],"meta":{"can_include":["contributors","my_schedules","plan_times","series"],"parent":{"id":"966664","type":"ServiceType"},"event_time":"2025-04-23T19:54:44Z","idempotency_token":"01966437-8c15-7af1-9352-63c74e8e4cdb"}}},"relationships":{"organization":{"data":{"type":"Organization","id":"60435"}}}}]} +{ + "data": [ + { + "id": "ec77d3b5-3ad0-4a6f-a3a3-93b00b32cf73", + "type": "EventDelivery", + "attributes": { + "name": "services.v2.events.plan.updated", + "attempt": 1, + "payload": { + "data": { + "type": "Plan", + "id": "79593263", + "attributes": { + "created_at": "2025-03-24T16:35:23Z", + "dates": "May 4, 2025", + "files_expire_at": "2025-05-19T11:34:10Z", + "last_time_at": "2025-05-04T10:35:00Z", + "multi_day": false, + "needed_positions_count": 3, + "other_time_count": 1, + "plan_notes_count": 2, + "plan_people_count": 9, + "planning_center_url": "https://services.planningcenteronline.com/plans/79593263", + "public": false, + "rehearsal_time_count": 2, + "series_title": null, + "service_time_count": 2, + "short_dates": "May 4", + "sort_date": "2025-05-04T09:05:00Z", + "title": null, + "total_length": 3945, + "updated_at": "2025-04-23T19:52:42Z" + }, + "relationships": { + "service_type": { + "data": { + "type": "ServiceType", + "id": "966664" + } + }, + "series": { + "data": null + }, + "created_by": { + "data": { + "type": "Person", + "id": "3989836" + } + }, + "updated_by": { + "data": { + "type": "Person", + "id": "47417549" + } + }, + "linked_publishing_episode": { + "data": null + } + }, + "links": { + "all_attachments": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/all_attachments", + "attachments": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/attachments", + "attendances": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/attendances", + "autoschedule": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/autoschedule", + "contributors": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/contributors", + "import_template": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/import_template", + "item_reorder": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/item_reorder", + "items": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/items", + "live": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/live", + "my_schedules": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/my_schedules", + "needed_positions": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/needed_positions", + "next_plan": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/next_plan", + "notes": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/notes", + "plan_times": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/plan_times", + "previous_plan": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/previous_plan", + "series": null, + "signup_teams": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/signup_teams", + "team_members": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263/team_members", + "self": "https://api.planningcenteronline.com/services/v2/service_types/966664/plans/79593263", + "html": "https://services.planningcenteronline.com/plans/79593263" + } + }, + "included": [], + "meta": { + "can_include": [ + "contributors", + "my_schedules", + "plan_times", + "series" + ], + "parent": { + "id": "966664", + "type": "ServiceType" + }, + "event_time": "2025-04-23T19:54:44Z", + "idempotency_token": "01966437-8c15-7af1-9352-63c74e8e4cdb" + } + } + }, + "relationships": { + "organization": { + "data": { + "type": "Organization", + "id": "60435" + } + } + } + } + ] +} diff --git a/Tasks.md b/Tasks.md index c85a656c..4089e7bd 100644 --- a/Tasks.md +++ b/Tasks.md @@ -1,34 +1,42 @@ # Tasks and Todos -## Williams-Sonoma -- [ ] Revert auto-adding of badges to post-new hire dash. Badges should only show when course `97d78ff7-e82b-4f1d-b142-d5ad51fba433` is completed. - 04-15-2025 +## Arbor Education +- [ ] Check that billing contact is not Claire. - 04-22-2025 +- [ ] Move academy to open access & upload domain blocking code - 04-22-2025 ## BuilderTrend - [X] Ask CSSC about release notes. Cam said he uses a Data designer to merge learner and client data. Wants to know if he can remove the data designer. - 04-16-2025 ## DeepL -- [X] Send Daniela instructions on how to update languages in templates. - 04-22-2025 - [ ] Ask if product will add an export button to the new access tab or have a dashboard around enrollment source. - 04-22-2025 +- [X] Send Daniela instructions on how to update languages in templates. - 04-22-2025 + +## Notes + +## Other Admin +- [ ] Await Lukasz direction on changing the Artera and Hanna University Looks once the new explores are created. - 04-24-2025 +- [ ] Clean up Walmart Mexico S3 bucket. Wait for Hubert to share what he wants to do. - 04-24-2025 ## Pipedrive - [ ] June LP Launch - test adding an LP to the getting started section under "Academy Courses" - 04-22-2025 - -## Arbor Education -- [ ] Check that billing contact is not Claire. - 04-22-2025 -- [ ] Move academy to open access & upload domain blocking code - 04-22-2025 +- [ ] Reach out to Ceri to understand if migration or re-design is larger priority. - 04-25-2025 +- [ ] Ask Zachary Hall to reach out to Ceri around SJ pricing. - 04-25-2025 ## Walmart Scintilla - [ ] Make the Basic LMS view templates live in prod - 04-23-2025 ## Walmart Supplier - [ ] Follow up with Phillip re: the group deletion question - 04-23-2025 -- [ ] Move Production templates to Sandbox - 04-23-2025 - [ ] Upload font files to S3 and make appropriate changes in templates/custom css - 04-23-2025 +- [ ] Move Production templates to Sandbox - 04-23-2025 +- [ ] Add all users in CSV to "Active Supplier", "All Users", and "Grow with Walmart" groups. Set Locale-Person to USA. ## Walmart Volt - [ ] Start compiling ticket list and notes to send to Dan Kardell. - 04-23-2025 -## Other Admin -- [ ] Await Lukasz direction on changing the Artera and Hanna University Looks once the new explores are created. - 04-24-2025 -- [ ] Clean up Walmart Mexico S3 bucket. Wait for Hubert to share what he wants to do. - 04-24-2025 +## Williams-Sonoma +- [ ] Revert auto-adding of badges to post-new hire dash. Badges should only show when course `97d78ff7-e82b-4f1d-b142-d5ad51fba433` is completed. - 04-15-2025 + +## Chubb +- [ ] Book EMC time for Alisha, Jared, me, Kim, and Jenelle