1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-30 23:44:59 +02:00
Commit Graph

29 Commits

Author SHA1 Message Date
Diego Cepeda
fef155f35f alter foreign key referential actions (#335) 2021-01-22 14:00:51 -08:00
Joel Krauska
1c36875951 Add slack channel notifications (#321)
* Add slack channel notifications

* typo in comments

* flake8

* update original schema for CI

* add dummy data

* typo in tests

* 8 %s

* remove # from test data, whitespace

* add #s

* add to cols filter

Co-authored-by: Joel Krauska <jkrauska@linkedin.com>
2020-12-04 13:33:48 -08:00
Fabian Chong
5e787554c7 Ignore insert failure. (#324) 2020-11-05 16:50:51 -08:00
Colin Yang
651ca21fd2 CRUD operations for ical_key (#299)
* CRUD operations for ical_key

All HTTP endpoints around ical_key should be authenticated so that we
can easily track what keys are created by this logged-in user.

* add missing semicolon

* store unix_timestamp as BIGINT
2020-03-06 13:55:45 -08:00
Diego Cepeda
af327b4e4a Py3 (#290)
* Py3 migration

* Update to Python 3 for CircleCI

* Fix auth bugs for python 3

Also fix notifier bug to check for active users

* Update notifier exception handling

Ignore role:target lookup failures from Iris, since these don't represent
problems with the underlying system, just that people have inactive users
on-call in the future.

* Add get_id param option (#246)

* add get_id param option

* removed superfluous select and simplified logic

* Flake8 typo (#247)

* Hide confusing team settings in an advanced dropdown

* Fix test fixtures

* Add "allow duplicate" scheduler in UI

Already in backend, so enable in FE too

* Add Dockerfile to run oncall in a container

* Move deps into a virtualenv.
Run app not as super user.
Mimick prod setup by using uwsgi

* Fix issue with Dockerfile not having MANIFEST.in and wrong passwords in (#257)

config

* Update to ubuntu:18.04 and python3 packages and executables

* Open config file as utf8

The default configuration file has utf8 characters, and python3
attempts to open the file as ASCII unless an alternate encoding
is specified

* Switch to the python3 uwsgi plugin

* Update print and os.execv statements for python3

Python3 throws an exception when the first argument to os.execv is empty:
ValueError: execv() arg 2 first element cannot be empty

The module documentation suggests that the first element should be the
name of the executed program:
https://docs.python.org/3.7/library/os.html#os.execv

* Map config.docker.yaml in to the container as a volume

./ops/entrypoint.py has the start of environment variable support
to specify a configuration file, but it is incomplete until we
update ./ops/daemons/uwsgi-docker.yaml or add environment support
to oncall-notifier and oncall-scheduler.

This commit allows users to map a specific configuration file in
to their container and have it used by all oncall programs.

* Convert line endings to match the rest of the project.

* Add mysql port to docker configuration

* Assume localhost mysql for default config.yaml

* Update python-dev package and MySQL root password

* Use password when configuring mysql

The project has started using a password on the mysql instance.
Once password auth is consistently working we can consider extracting
the hardcoded password into an env file that is optionally randomly
generated on initial startup.

* Fix preview for round-robin (#269)

* #275 fix for Python3 and Gunicorn load config

* Fixed E303 flake8

* Change encoding & collation + test  unicode name

Co-authored-by: Daniel Wang <dwang159@gmail.com>
Co-authored-by: ahm3djafri <42748963+ahm3djafri@users.noreply.github.com>
Co-authored-by: TK <tkahnoski+github@gmail.com>
Co-authored-by: Tim Freund <tim@freunds.net>
Co-authored-by: Rafał Zawadzki <bluszcz@bluszcz.net>
2020-01-15 15:38:25 -08:00
Harshit Sharma
b688b3c885 Add teams messenger (#239)
* Add teams messenger

* Add pymsteams in setup

* Fix style
2019-02-25 15:35:19 -08:00
Diego Cepeda
5ab4685414 team name change on deletion (#188)
* on delete change team name to uuid to avoid future conflicts

* string formating

* requested changes

* close connection
2018-07-30 15:28:48 -07:00
Daniel Wang
7110142ebc API changes for round-robin scheduling
On the frontend: Show roster order when updating schedules with an
existing order. Remove "Round-robin" and rename "custom order" to
round robin, since these cases are very similar/the same.
2018-04-03 17:26:17 -07:00
William Leese
6f871ceb96 remove labels, cleanup template, javascript 2018-01-12 10:11:42 -08:00
William Leese
6ce3a71f66 Revert "schema update"
This reverts commit 4924eac637.
2018-01-12 10:11:42 -08:00
William Leese
2bce1b4889 schema update 2018-01-12 10:11:42 -08:00
William Leese
284a92e6fa make the user setting page show all values for all modes 2018-01-12 10:11:42 -08:00
Daniel Wang
29ad8e3d02 Add override phone number to teams
Allows teams to configure a phone number that overrides a user's
regular number when they're the current primary on-call. This
lets teams pass around an on-call pager with a single phone
number, for example.
2018-01-10 16:17:14 -08:00
Daniel Wang
f08deba762 Update dummy data and docker config 2017-11-13 12:52:21 -08:00
Daniel Wang
2aee0c316c Add team subscriptions 2017-11-07 10:36:17 -08:00
Daniel Wang
1ea7fbb8ea Pluggable schedulers, round robin scheduling, roster order 2017-11-01 13:43:01 -07:00
Daniel Wang
ee6f4bdc9c Use iris dynamic plans to escalate
Reduce plan spam in Iris from every Oncall team making a plan,
instead designate medium and urgent escalation plans and
dynamically determine targets.
2017-09-19 11:54:14 -07:00
Qingping Hou
a47ed21c4d add note to event 2017-07-24 17:03:31 -07:00
Daniel Wang
429e84e7b3 Add unavailable role 2017-06-29 14:09:16 -07:00
Daniel Wang
05e815a7a7 Add team pinning
Allow users to pin teams to landing page. Persist data in db to
keep view consistent across machines
2017-06-02 16:15:17 -07:00
Daniel Wang
6558d1f388 Document everything 2017-05-24 17:42:05 -07:00
Qingping Hou
9777768235 ci: use mysql from docker 2017-05-24 15:32:11 -07:00
Daniel Wang
6a4b13a0ee Set up packer/docker 2017-05-22 17:12:14 -07:00
Qingping Hou
8a54b06195 feat: support sync users from slack & rename im to slack 2017-05-22 10:09:33 -07:00
Daniel Wang
83c5913f0e Merge pull request #20 from dwang159/iris
Add Iris plan support for team escalation
2017-05-12 17:23:35 -07:00
Daniel Wang
3065f93a7e Add Iris plan support for team escalation 2017-05-12 16:39:41 -07:00
Qingping Hou
2b38222d23 chore: rename db name to oncall in schema 2017-05-12 16:07:54 -07:00
Qingping Hou
eec8516d28 feat: support role ordering 2017-05-10 21:44:01 -07:00
Daniel Wang
b064885d4b Add db schema 2017-05-04 22:46:46 -07:00