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

21 Commits

Author SHA1 Message Date
Diego Cepeda
9d67c000a1 Tie Oncall healthcheck to database availability (#320)
* Tie healthcheck to db availability

* add correct number of substitutions

* pin greenlet version

* update flake8 settings
2020-10-02 13:49:10 -07:00
James Won
88809d7911 Add more metadata to setup.py so it shows up on pypi 2020-01-24 15:46:45 -08:00
Diego Cepeda
c1df110d99 Merge branch 'master' into py3_merge 2020-01-15 15:43:06 -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
Tim Freund
df596cc580 Pin slackclient to version 1.3.1
In #251 User avutu noted that a fresh install will fail because an
upstream requirement of the slackclient package requires python 3.
User Linearhero found that version 1.3.1 maintains python 2
compatibility.
2019-08-09 15:30:11 -04:00
Daniel Wang
336b1df28d Revert "Merge pull request #240 from dwang159/2to3"
This reverts commit 850c4bd062, reversing
changes made to b688b3c885.
2019-03-19 12:56:36 -07:00
Daniel Wang
5a66b2f660 Py3 migration 2019-02-28 14:00:39 -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
Daniel Wang
42486429e0 Add ical export API (#229)
* Add ical export API
2019-01-04 10:43:52 -08:00
Daniel Wang
025793a592 Migrate to cryptography from pycrypto 2018-07-31 16:48:46 -07:00
Tjebbe Vlieg
82bb2b7b4c Fix prometheus_client not installed
This commit fixes #162.
2018-06-28 13:34:06 -07:00
William Leese
8813d85504 Revert "add pyflakes for tests"
This reverts commit 1915f8fe24.
2018-01-12 10:11:42 -08:00
William Leese
8df1e739d9 add pyflakes for tests 2018-01-12 10:11:42 -08:00
Daniel Wang
03b1d664c7 Add ldap example user sync and auth 2017-07-28 14:27:54 -07:00
Qingping Hou
ee710ef186 ci: enable circleci 2017-05-23 15:56:26 -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
Qingping Hou
d8124f655c dev: configure gunicron dev server in python 2017-05-10 12:21:45 -07:00
dwang159
4ed569b8d6 Clean/refactor notifier, add user validation (#12)
* Clean/refactor notifier, add user validation

Fix a few notifier bugs, move reminder/user validator to their own
files, add Makefile to docs

* Move reminder/user validator to notifier directory
2017-05-08 18:19:30 -07:00
Damien Nozay
f782bdeda3 update setup.py 2017-05-02 19:05:16 -07:00
Qingping Hou
3f40264243 initial commit 2017-05-02 15:57:25 -07:00