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

242 Commits

Author SHA1 Message Date
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
Diego Cepeda
d56c002e09 Merge pull request #224 from dwang159/busy_suggest
Exclude busy users from roster suggest
2018-10-25 15:29:19 -07:00
Daniel Wang
dbd2f21176 Exclude busy users from roster suggest
Also, ignore W503/W504 in flake8 checks to allow line breaks
before or after binary operators
2018-10-25 13:27:51 -07:00
zenman94
61e848509a Update SQL syntax for first user in a roster
When a roster does not contain any user, the SQL return a "NULL" roster_id.
2018-10-23 12:04:16 -07:00
Fellyn Silliman
58ec65b3d2 Merge pull request #223 from dwang159/minor
Fix potential 5xx, move dataTables to bundle for CSP
2018-10-22 19:36:20 -04:00
Daniel Wang
dd32c0476d Fix potential 5xx, move dataTables to bundle for CSP 2018-10-22 15:58:31 -07:00
Ahmed Jafri
71281267f8 Merge branch 'master' of github.com:linkedin/oncall 2018-10-17 08:52:04 -07:00
Daniel Wang
32162f7d1d Add tooltip for override phone number (#220)
Too confusing right now
2018-10-08 18:50:56 -07:00
Daniel Wang
3585625be2 Set require_auth to False by default for login splash (#219) 2018-10-08 11:01:48 -07:00
Daniel Wang
40982732fe Implement auth_required to force auth on API calls (#216) 2018-10-04 10:53:48 -07:00
Daniel Wang
c05869581d Group schedule events by role as well as chronologically (#218)
Break ties based on roles
2018-10-04 10:53:00 -07:00
Daniel Wang
c98962d7b6 Allow admins to edit past events (#217) 2018-10-03 17:52:44 -07:00
Ahmed Jafri
c7185921b8 Move deps into a virtualenv.
Run app not as super user.
Mimick prod setup by using uwsgi
2018-09-22 09:46:08 -07:00
Daniel Wang
0ece55364d Upgrade versions for handlebars, JQuery (#214) 2018-09-21 11:29:33 -07:00
Ahmed Jafri
5383f52454 Merge branch 'master' of github.com:linkedin/oncall 2018-09-20 15:49:44 -07:00
Ahmed Jafri
189a72f56d Add Dockerfile to run oncall in a container 2018-09-20 15:47:44 -07:00
Diego Cepeda
68c07537d6 Merge pull request #212 from dwang159/empty_name
Disallow empty team name on PUT
2018-09-20 15:25:54 -07:00
Daniel Wang
05c68a23cc Disallow empty team name on PUT 2018-09-20 14:56:46 -07:00
Jordan Hamel
b40c938bcd mysql 8 breaks Authentication plugin 'caching_sha2_password' (#206)
https://github.com/docker-library/mysql/issues/419
ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded
Resolve by explicitly testing with mysql5.7 docker image... there are other ways around it but this guide is for devs to test quickly.
2018-09-05 11:56:54 -07:00
Diego Cepeda
9de81725d0 change preview date behavior to match populate behavior (#207)
* change preview date behavior to match populate
2018-08-27 13:01:03 -07:00
Diego Cepeda
7983b3dea2 Merge pull request #202 from dwang159/dst_12
Fix 12-hour event DST bug
2018-08-10 09:15:16 -07:00
Daniel Wang
9cb274576f Fix 12-hour event DST bug 2018-08-09 17:55:11 -07:00
Diego Cepeda
ff530d057f Fix javascript errors and explicitly drop temp table to avoid worker pool problems (#201)
* fix javascriot errors and only copy events that could be used

* explicitly drop table

* fix not displaying all types of roles in populate bug
2018-08-08 16:23:01 -07:00
Diego Cepeda
c07bc8f455 disable preview 2018-08-08 11:08:38 -07:00