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

265 Commits

Author SHA1 Message Date
Colin Yang
1ad2de4d90 add api endpoints to invalidate ical keys (#302)
* add api endpoints to invalidate ical keys

* invalidate ical_key during user-sync process
2020-03-10 13:39:33 -07:00
Colin Yang
d54b76ecf4 Implement public ical endpoint (#301) 2020-03-09 12:00:55 -07: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
Xinyu (Colin) Yang
5b9520837f [oncall] optionally hide oncall contact information (#297)
Still defaults to showing the contact information.
2020-02-28 14:51:08 -08:00
James Won
b6bd71f5ae Fix version parsing regex in workflow 2020-02-06 22:07:14 -08:00
James Won
dbe01ad85e Update README.md 2020-02-04 11:01:49 -08:00
James Won
fdff37a417 Version 1.1.7
Create unified github workflow to create release and also publish that release to pypi
v1.1.7
2020-02-04 10:58:36 -08:00
James Won
3b589b69f3 Delete unneeded workflows 2020-02-04 10:57:29 -08:00
James Won
61a439cf8f Update and rename create-release.yml to create-release-and-publish.yml 2020-02-04 10:56:58 -08:00
James Won
17c905b071 Version 1.1.6
Testing github workflows to automatically create release on version bump
v1.1.6
2020-02-04 10:46:25 -08:00
James Won
2d10b68ede Create create-release.yml 2020-02-04 10:45:11 -08:00
James Won
1a57f31243 Update README.md 2020-02-04 10:09:04 -08:00
James Won
59f0dfd3f9 Update __init__.py v.1.1.5 2020-02-04 10:04:30 -08:00
James Won
d57a68d33a Update README.md
Add github workflow badge
2020-02-04 10:02:54 -08:00
James Won
4637d39faa Update pythonpublish-test.yml 2020-02-04 09:59:43 -08:00
James Won
f1b3c4e65e Update pythonpublish.yml 2020-02-04 09:59:27 -08:00
Diego Cepeda
93c665967b Update __init__.py v1.1.4 2020-01-30 14:30:10 -08:00
James Won
63743cba82 Bump to 1.1.3 v1.1.3 2020-01-24 15:57:55 -08:00
James Won
88809d7911 Add more metadata to setup.py so it shows up on pypi 2020-01-24 15:46:45 -08:00
James Won
7cb9528111 Bump to v1.1.2 v.1.1.2 2020-01-24 11:37:28 -08:00
James Won
a4b133fcbf Create pythonpublish.yml 2020-01-24 10:40:22 -08:00
James Won
c8ff942412 Bump to v1.1.1
Trying to get a workflow to publish these builds to PyPI
v.1.1.1
2020-01-22 12:43:32 -08:00
James Won
d872f63c49 Update and rename pythonpublish.yml to pythonpublish-test.yml 2020-01-22 12:22:28 -08:00
James Won
b88aaed3e2 Test using Github Actions to publish to test.pypi.org 2020-01-22 12:16:51 -08:00
Diego Cepeda
23c3fccb54 Auto increment footer year (#294)
* auto increment footer year

* comment
2020-01-19 16:02:21 -08:00
Diego Cepeda
c416d91876 add bonus events endpoint (#292)
* add bonusd events endpoint

* change to get to avoid possible error

* rename object
2020-01-17 15:20:56 -08:00
Joe Gillotti
e4daa3049e Merge pull request #291 from linkedin/py3_merge
Promote py3 branch to new master
2020-01-15 15:54:56 -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
Diego Cepeda
450383df5d Merge pull request #265 from timfreund/quickstart
Quickstart documentation update
2019-12-16 10:26:58 -08:00
Diego Cepeda
71f290e818 Merge pull request #266 from timfreund/py2-slackclient
Pin slackclient to version 1.3.1
2019-12-13 10:54:04 -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
Tim Freund
5cd0f0c63e Remove ops/packer
This relates to issue #253.  Removing the packer configuration
in a separate commit in case packer is still in use when making
official releases:  it might make sense to update the quickstart
docs but keep the packer configuration around for some time.
2019-08-09 15:12:32 -04:00
Tim Freund
8ac1a21942 Update quickstart with docker-compose instructions
This relates to issue #253.  Dockerfile and docker-compose.yml have
been added to the project eliminating the need to use packer for
producing container images, but the documentation was not updated.
2019-08-09 15:09:57 -04:00
TK
3f52e8dbca Fix issue with Dockerfile not having MANIFEST.in and wrong passwords in (#257)
config
2019-06-18 18:00:03 -07:00
Diego Cepeda
c2a0e8ba32 Merge pull request #213 from ahmedjafri/master
Docker-ize build env and service
2019-06-12 12:56:43 -07: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
0fabe33997 Revert "Merge pull request #241 from dwang159/py3bugs"
This reverts commit a4829c0e93, reversing
changes made to 850c4bd062.
2019-03-19 12:56:28 -07:00
Diego Cepeda
a4829c0e93 Merge pull request #241 from dwang159/py3bugs
Fix auth bugs for python 3
2019-03-14 10:07:51 -07:00
Daniel Wang
db04a485ba Fix auth bugs for python 3
Also fix notifier bug to check for active users
2019-03-14 10:02:19 -07:00
Diego Cepeda
850c4bd062 Merge pull request #240 from dwang159/2to3
Py3 migration
2019-02-28 16:04:49 -08:00
Daniel Wang
9e16db5782 Update to Python 3 for CircleCI 2019-02-28 14:35:11 -08: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
9542f74b34 Add search by email to teams endpoint 2019-02-08 17:00:26 -08:00
Diego Cepeda
cc02aa82f9 today button fix 2019-01-24 13:15:56 -08:00
Diego Cepeda
3e8db3ad8e fix today button behavior 2019-01-24 13:15:56 -08:00
Daniel Wang
42486429e0 Add ical export API (#229)
* Add ical export API
2019-01-04 10:43:52 -08:00
Diego Cepeda
dcc3704dbf Merge pull request #228 from dwang159/suggest_end
Add end param to roster suggest
2018-11-26 16:48:38 -08:00
Daniel Wang
957ca3268e Add end param to roster suggest 2018-11-26 16:38:49 -08:00