python scripts for todos

This commit is contained in:
Norm Rasmussen
2022-10-25 16:56:21 -04:00
parent 87c9130e24
commit 36ab0e9086
12 changed files with 121 additions and 49 deletions

View File

@ -72,3 +72,19 @@ Compliance: mandatory courses on topics like Data Security or Workplace Inclusiv
* Hopefully in Q1 we can create a new endpoint
* 3 Admins from the Netherlands team that will be creating content, managing data, & creating ILTs
* No need to push people along, so we just need to wait on Netherlands HR.
## 10/25/2022
* Bas leaving Dept
* Last day is November 11th
* Bas to intro Copita and other new PMs for this project.
* Bas has meetings this week for usage and Pilot in Netherlands
* Lost his trust in the Netherlands people to actually implement it
* He will be discussing with global management this week to get them to use Northpass for content.
* They have begun working lightly with it, but he is trying to get them to rely on it more.
* Netherlands is 700 employees, Global is project focused, currently for 2 projects, ~60 users.
* [ ] Norm to reach out to certain people to make our name known around the org. Bas may help us to make intros.
* Treat Dept like a teenager.
* Last two things Bas wants us to keep in mind:
* He has full access to the email & password for the Google Calendar integration. He is waiting on a confirmation from IT before handing it over.
* How and when to roll Northpass out for smaller projects. How to treat access for managers and admins?
* Meeting for next week: can we move to 11am to accomodate Kopita, who is PST.

View File

@ -103,3 +103,25 @@ Molly wants to try... 500 people get a message saying "you're going to see messa
* Norm to do a few tasks to help see if we can push this through.
* Madison, on Ummey's team, is a contractor and last day is November 10th.
## 10/25/2022
* Jenna, People Ops, has joined the call.Ummey was her manager.
* Will be attending weekly meetings
* Schedule an additional meeting for training
* Talkspace needs to figure out roles for Northpass.
* Very busy, picking up where Ummey left off
* Overwhelmed with Ummey's workload
* Jenna and Molly to meet to discuss specific compliance/Talkspace needs within Northpass
* Madison told Jenna everything she already knows about this implementation.
* The biggest knowledge gap is Ummey's speciifc tasks.
### Gracie and Fountain
* Gracie had some time with Molly, but then cancelled and said she followed up with Nicole. But unclear about what.
* [ ] Record Vidyard + Screenshots to show what needs to be done.
### Jenna & Hand off
* Asked about BBHR
* Lots of questions to Jenna about trainings not showing up as complete. Flashing button is implemented.
* Offered to reach out to support for figuring stuff like this out, and that we need emails and screenshots to successfully debug.
* In terms of NPP instance, are they all in Northpass? Yes.
* Jenna is currently doing an audit of HR and trainings and asked about groups within each instance, etc.
* This is a separate audit from the QMC.

View File

@ -54,3 +54,28 @@ module 7 -> coaching philosophy
* Kaitlyn to check. She needs to figure out what the "date" cut off is for adding people to the January vs July cohort cadence.
* There is also the *Fundamentals Course*, which will not be drip anymore, but all courses all at once.
* Workflow can be deleted (already done).
## 10/25/2022
### Analytics Meeting with Trei & Abby
* Discuss self-got analytics, custom reports, Google Sheets automations
* Other items from Trei:
* Live-hosted events + data:
* Registrations and Attendance data
* Abby: two iterations of webinars to students. Thursdays & ad-hoc coaching sessions
* Additional group will be added based on this new group - coaching group & national board accrediting group
* Send invitations and attendace to these groups and all through Northpass
* Stopped using ILTs and now using an extenal/manual process
* Optimal, assign events, not allow them to register
* OR - recurring event one registration allows them to register for all events
* Calendar: Google Calendar
* Video Tech: Zoom
* Submissions of recorded video content
* Can the video submission be sent to faculty automatically?
* They _could_ give faculty access to Northpass
* How are faculty mapped to assignments/courses?
* Unsure as of yet
* 30-40 students in this class
* 3 faculty to be grading
* Spreadsheet is a good start (The Look)
* See if we can add in ILT & Submission Data
* Faculty would have to grade based on pass/fail

Binary file not shown.

View File

@ -199,8 +199,10 @@ These are new notes to test an update function
- [X] Move Contact to the bottom: Contact, Profile Settings, Sign out
- [X] Rider App
- [X] Add Language Buttons such as in Canva (top right)
* [ ] This is a task
* [ ] This is another task
* [ ] This is a sub task!
* [ ] Here is another task.
### Notes
@ -216,3 +218,4 @@ Advised to start at the highest level and most broad groups, then add people to
Figma file questions
They need more training and enablement They will follow up for Figma files and setting those up for design
,[Name](2022-10-17_name.md)

View File

@ -99,3 +99,4 @@ This is ONLY for the US
* New Site launched One Vision. Pro site. It says "Interact" at the top of the dashboard. Onevision.prointeract.com.
* Melinda called it a "show pad". https://www.prointeract.com/#mousescroll
* Internal training site? CMS? Hard to tell. But it has a folder for sales training. It looks just like a list of files and resources.

View File

@ -0,0 +1,4 @@
* [ ] (Flink) [10/25/2022]This is a task
* [ ] (Flink) [10/25/2022]This is another task
* [ ] (Flink) [10/25/2022][ ] This is a sub task!
* [ ] (Flink) [10/25/2022]Here is another task.

View File

@ -11,7 +11,7 @@ rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
def findheadings():
headingsarray = []
with open(rootdir + "G2/G2.md", "r") as myfile:
with open(rootdir + "G2.md", "r") as myfile:
file = myfile.readlines()
for headings in file:
if "##" in headings:

47
Scripts/TodoMD/todo.py Normal file
View File

@ -0,0 +1,47 @@
import io
import markdown
from re import search
import os
from datetime import date
#rootdir = "/Users/normrasmussen/Documents/Northpass/CustomerNotes/"
# This is for testing
rootdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Confluence_Notes/SampleNotes/"
def findCompany(rootdir):
files = os.listdir(rootdir)
for fileName in files:
if fileName.startswith(".") or fileName.startswith("Todos"):
pass
else:
company = fileName[:-3]
findTodos(rootdir, company)
def findTodos(rootdir, company):
todos = []
with open(rootdir + company + ".md", "r") as currentfile:
file = currentfile.readlines()
for fullTasks in file:
if "* [ ] " in fullTasks:
tasks = fullTasks[6:]
todos.append(tasks)
writeTasks(rootdir, company, todos)
def writeTasks(rootdir, company, todos):
today = date.today()
currentDate = today.strftime("%m/%d/%Y")
with open(rootdir + "Todos.md", "w") as taskFile:
for singleTask in todos:
taskFile.write("* [ ] (" + company + ") " + "[" + currentDate + "]" + singleTask)
# deleteTasks(rootdir, company)
def deleteTasks(rootdir, company, todos):
with open(rootdir + company, "r") as input:
with open(rootdir + company, "w") as currentfile:
for task in input:
if task.strip("\n") != todos:
currentfile.write(task)
if __name__ == "__main__":
findCompany(rootdir)

View File

@ -1,46 +0,0 @@
# This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "https://northpass.atlassian.net/wiki/rest/api/content"
#auth = HTTPBasicAuth("bnJhc211c3NlbkBub3J0aHBhc3MuY29tOnFmOUlsN1g0d2t0aGdRS0JPSWx5NTczNw==")
# Find a page CURL
#curl -u admin:admin -X GET "http://localhost:8080/confluence/rest/api/content?title=myPage%20Title&spaceKey=TST&expand=history" | python -mjson.tool
auth = HTTPBasicAuth("nrasmussen@northpass.com", "qf9Il7X4wkthgQKBOIly5737")
headers = {
"X-Atlassian-Token": "no-check",
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps( {
"type":"page",
"title":"Customer Name",
"ancestors":[{"id":2210463745}],
"space":
{"key":"~350535240"},
"body":
{"storage":
{"value":
"<p>A Customer Page</p> <ac:structured-macro ac:name='expand' ac:schema-version='1'><ac:rich-text-body><p>Customer Content * Item1 * Item 2 1. Item3 2. Item 4</p></ac:rich-text-body></ac:structured-macro>",
"representation":"storage"}}
} )
response = requests.request(
"POST",
url,
data=payload,
headers=headers,
auth=auth
)
response = json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))
print(response)
#x = response.split()
#print(x)