compilerla / compiler-admin Goto Github PK
View Code? Open in Web Editor NEWCompiler's administrative tasks
License: Apache License 2.0
Compiler's administrative tasks
License: Apache License 2.0
Check if the user to be deleted has a Slack account. If so, delete/deactivate the Slack account as well.
Will also cover the offboard command, since internally it uses delete.
Every month, Compiler exports data from its internal time tracking system (Toggl) for a particular client, and converts this data into a format necessary for import into their time tracking system (Harvest).
The code for this conversion can be found in compiler_admin/services/toggl.py
A helper script for the monthly conversion process was recently added at bin/hours-convert.sh
. The helper script wraps a call to the compiler-admin time convert
command with some checks and arguments.
The full process can be described as follows:
.env
file with the path to the new Toggl data file, path to a new output Harvest file, and other settingssummarize-harvest
Notebook to get some quick QA checks on the converted Harvest CSVThis process is time consuming and error prone in many different ways. Much of it is largely opaque to everyone in Compiler except for those that routinely go through the steps outlined above.
The following are areas for improvement around this process.
This is one of the areas that is most prone to user-error. Even with features like saved reports in Toggl, it is easy to make a mistake on the date range or another basic report config, and sometimes these mistakes go unnoticed until much later in the process.
Another area that would benefit from a standardized approach, applied the same way every month. Some issues have recurred for a number of months before being addressed with new/additional manual checks. There is always the possibility of new issues coming up too, based on changes in one or both systems. There are multiple phases at which data can and should be QA'd with some basic checks.
In an ideal world, this entire workflow is run out of this repository via GitHub Actions.
compiler-admin
commands):
Otherwise the project setup will get lost between rebuilds of the devcontainer.
Store it in CONFIG_PATH
, the same place we store the GAM project configuration, which is mapped to a local directory via a Docker Volume.
This would be much nicer to manage as a Python CLI.
See also https://github.com/taers232c/GAMADV-XTD3/wiki/Install-GAM-as-Python-Library
Is this possible with Slack's API?
--slack
or similar option should create a new user in Slack with a default set of channels--account-type
, add user to more/different channels--account-type
, add user to Slack groupThis may not be possible unless we upgrade to an Enterprise plan: https://api.slack.com/admins
The following list of features and APIs are available in Enterprise Grid workspaces only.
Define a basic compiler_admin.services
to connect to the Slack API. Credentials from environment variables?
See https://github.com/cal-itp/benefits/blob/dev/.github/workflows/add-to-project-issues.yml for an example of a workflow that does this.
Related:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.