Skip to content

Commit 869b012

Browse files
authored
Merge branch 'master' into bugfix/fix-cocoa-link
2 parents 857f6a8 + e3b04bf commit 869b012

File tree

161 files changed

+7019
-2478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+7019
-2478
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
]
1212
],
1313
"plugins": [
14+
"transform-class-properties",
1415
"transform-object-rest-spread",
1516
[
1617
"babel-plugin-transform-builtin-extend",
@@ -27,6 +28,19 @@
2728
"presets": [
2829
"react",
2930
"latest"
31+
],
32+
"plugins": [
33+
"transform-class-properties",
34+
"transform-object-rest-spread",
35+
[
36+
"babel-plugin-transform-builtin-extend",
37+
{
38+
"globals": [
39+
"Array"
40+
]
41+
}
42+
],
43+
"idx"
3044
]
3145
}
3246
}

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"require": false,
1515
"expect": false,
1616
"sinon": false,
17+
"MockApiClient": true,
18+
"TestStubs": true,
1719
"Raven": true,
1820
"jest": true
1921
},

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
filter_secrets: false
12
sudo: false
23
language: python
34
rvm:

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"static": true,
77
"node_modules": true,
88
"htmlcov": true,
9+
"build": true,
10+
"*.log": true,
11+
"*.egg-info": true,
12+
"src/sentry/locale": true,
913
"src/sentry/static/sentry/dist/": true
1014
},
1115
"files.trimTrailingWhitespace": true,

CHANGES

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ Version 8.18 (Unreleased)
22
-------------------------
33

44
- Expanded resolution options to allow current and explicit versions.
5-
- Removed support for global dsyms
65
- Added proguard support
76
- Removed support for global dsyms.
87
- Moved Queue admin page to React.
98
- Replaced usage of jQuery Flot library with internal graphs.
109
- Expanded ignore actions to include deltas and rates for both occurances and
11-
users imapcted.
10+
users impacted.
11+
- Add a new option (`auth.allow-registration`) for determining whether registration
12+
is allowed on an installation.
13+
- Moved "create organization" into React.
14+
- Expanded React Form components (Form, ApiForm).
15+
- Moved "create team" into React.
16+
- add Slack to supported auth backends in social auth (for plugins)
17+
- Expanded resolution actions (on stream) to include current release and explicit
18+
release.
1219

1320
Schema Changes
1421
~~~~~~~~~~~~~~
@@ -29,9 +36,13 @@ Schema Changes
2936
- Drop index on ``ReleaseCommit(project_id)``
3037
- Drop unique constraint on ``ReleaseEnvironment(project_id, release_id, environment_id)``
3138
- Added GroupResolution.type
32-
- Added GropuResolution.actor_id
39+
- Added GroupResolution.actor_id
3340
- Added Project.platform
3441
- Added GroupSnooze.actor_id
42+
- Added ScheduledJob
43+
- Added GroupResolution.actor_id
44+
- Added ``ScheduledJob`` model
45+
- Added User.last_active
3546

3647
API Changes
3748
~~~~~~~~~~~

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ warn("This change includes modification to a file that was backported from newer
103103

104104
# Reasonable commits must update CHANGES
105105
if !github.pr_body.include?("#nochanges") && @S_CHANGE_LINES && git.lines_of_code > @S_CHANGE_LINES && !git.modified_files.include?("CHANGES") && checkFilesPattern(@S_CHANGES_REQUIRED_PATTERNS).any?
106-
fail("You need to update CHANGES due to the size of this PR")
106+
warn("You should update CHANGES due to the size of this PR")
107107
end
108108

109109
if git.added_files.grep(@S_MIGRATIONS).any?

Makefile

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
CPUS ?= $(shell sysctl -n hw.ncpu || echo 1)
2+
MAKEFLAGS += --jobs=$(CPUS)
13
NPM_ROOT = ./node_modules
24
STATIC_DIR = src/sentry/static/sentry
35

4-
install-python:
5-
@echo "--> Installing Python dependencies"
6-
pip install "setuptools>=0.9.8"
7-
# order matters here, base package must install first
8-
pip install -e .
9-
pip install ujson
10-
pip install "file://`pwd`#egg=sentry[dev]"
6+
develop: setup-git update-submodules install-python install-yarn
7+
@echo ""
8+
9+
develop-only: develop
1110

1211
install-yarn:
1312
@echo "--> Installing Node dependencies"
@@ -18,13 +17,21 @@ install-yarn:
1817
# See: https://github.com/karma-runner/karma-phantomjs-launcher/issues/120#issuecomment-262634703
1918
node ./node_modules/phantomjs-prebuilt/install.js
2019

21-
install-python-tests:
22-
pip install "file://`pwd`#egg=sentry[dev,tests,dsym]"
20+
install-python:
21+
# must be executed serialially
22+
$(MAKE) install-python-base
23+
$(MAKE) install-python-tests
2324

24-
develop-only: update-submodules install-python install-python-tests install-yarn
25+
install-python-base:
26+
@echo "--> Installing Python dependencies"
27+
pip install "setuptools>=0.9.8" "pip>=8.0.0"
28+
# order matters here, base package must install first
29+
pip install -e .
30+
pip install ujson
31+
pip install "file://`pwd`#egg=sentry[dev]"
2532

26-
develop: develop-only setup-git
27-
@echo ""
33+
install-python-tests:
34+
pip install "file://`pwd`#egg=sentry[dev,tests,dsym]"
2835

2936
dev-postgres: install-python
3037

@@ -136,7 +143,7 @@ lint-js:
136143
@echo ""
137144

138145
coverage: develop
139-
make test-python-coverage
146+
$(MAKE) test-python-coverage
140147
coverage html
141148

142149
publish:
@@ -160,7 +167,9 @@ travis-upgrade-pip:
160167
travis-setup-cassandra:
161168
echo "create keyspace sentry with replication = {'class' : 'SimpleStrategy', 'replication_factor': 1};" | cqlsh --cqlversion=3.1.7
162169
echo 'create table nodestore (key text primary key, value blob, flags int);' | cqlsh -k sentry --cqlversion=3.1.7
163-
travis-install-python: travis-upgrade-pip install-python install-python-tests
170+
travis-install-python:
171+
$(MAKE) travis-upgrade-pip
172+
$(MAKE) install-python install-python
164173
python -m pip install codecov
165174
travis-noop:
166175
@echo "nothing to do here."
@@ -176,9 +185,13 @@ travis-install-mysql: travis-install-python
176185
pip install mysqlclient
177186
echo 'create database sentry;' | mysql -uroot
178187
travis-install-acceptance: install-yarn travis-install-postgres
179-
travis-install-js: travis-upgrade-pip install-python install-python-tests install-yarn
188+
travis-install-js:
189+
$(MAKE) travis-upgrade-pip
190+
$(MAKE) install-python install-yarn
180191
travis-install-cli: travis-install-postgres
181-
travis-install-dist: travis-upgrade-pip install-python install-python-tests install-yarn
192+
travis-install-dist:
193+
$(MAKE) travis-upgrade-pip
194+
$(MAKE) install-python install-yarn
182195
travis-install-django-18: travis-install-postgres
183196
pip install "Django>=1.8,<1.9"
184197

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Official Sentry SDKs
2323
* `Node <https://github.com/getsentry/raven-node>`_
2424
* `PHP <https://github.com/getsentry/sentry-php>`_
2525
* `Go <https://github.com/getsentry/raven-go>`_
26-
* `Java <https://github.com/getsentry/raven-java>`_
26+
* `Java <https://github.com/getsentry/sentry-java>`_
2727
* `Objective-C/Swift <https://github.com/getsentry/sentry-cocoa>`_
2828
* `C# <https://github.com/getsentry/raven-csharp>`_
2929
* `Perl <https://github.com/getsentry/perl-raven>`_

config/hooks/pre-commit

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ from __future__ import absolute_import
33

44
import os
55
import sys
6-
import subprocess
7-
import json
86

97
from glob import glob
10-
from click import echo, style
118

12-
from sentry.lint.engine import check_files, get_js_files
9+
from sentry.lint.engine import check_files, js_format, yarn_check
1310

1411
text_type = type(u'')
1512

@@ -19,77 +16,6 @@ if 'VIRTUAL_ENV' in os.environ:
1916
'%s/lib/*/site-packages' % os.environ['VIRTUAL_ENV'])[0]
2017
sys.path.insert(0, site_packages)
2118

22-
PRETTIER_VERSION = "1.2.2"
23-
24-
def yarn_check(file_list):
25-
"""
26-
Checks if package.json was modified WITHOUT a corresponding change in the Yarn
27-
lockfile. This can happen if a user manually edited package.json without running Yarn.
28-
29-
This is a user prompt right now because there ARE cases where you can touch package.json
30-
without a Yarn lockfile change, e.g. Jest config changes, license changes, etc.
31-
"""
32-
if file_list is None or os.environ.get('SKIP_YARN_CHECK'):
33-
return False
34-
35-
if 'package.json' in file_list and 'yarn.lock' not in file_list:
36-
echo(style("""
37-
Warning: package.json modified without accompanying yarn.lock modifications.
38-
39-
If you updated a dependency/devDependency in package.json, you must run `yarn install` to update the lockfile.
40-
41-
To skip this check, run:
42-
43-
$ SKIP_YARN_CHECK=1 git commit [options]""", fg='yellow'))
44-
return True
45-
46-
return False
47-
48-
49-
def js_format(file_list=None):
50-
"""
51-
We only format JavaScript code as part of this pre-commit hook. It is not part
52-
of the lint engine.
53-
"""
54-
project_root = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
55-
prettier_path = os.path.join(project_root, 'node_modules', '.bin', 'prettier')
56-
57-
if not os.path.exists(prettier_path):
58-
echo('!! Skipping JavaScript formatting because prettier is not installed.', err=True)
59-
return False
60-
61-
# Get Prettier version from package.json
62-
package_version = None
63-
package_json_path = os.path.join(project_root, 'package.json')
64-
with open(package_json_path) as package_json:
65-
try:
66-
package_version = json.load(package_json)['devDependencies']['prettier']
67-
except KeyError:
68-
echo('!! Prettier missing from package.json', err=True)
69-
return False
70-
71-
prettier_version = subprocess.check_output([prettier_path, '--version']).rstrip()
72-
if prettier_version != package_version:
73-
echo('!! Prettier is out of date: %s (expected %s). Please run `yarn install`.' \
74-
% (prettier_version, package_version), err=True)
75-
return False
76-
77-
js_file_list = get_js_files(file_list)
78-
79-
has_errors = False
80-
if js_file_list:
81-
status = subprocess.Popen([prettier_path, '--write', '--single-quote',
82-
'--bracket-spacing=false', '--print-width=90', '--jsx-bracket-same-line=true'] +
83-
js_file_list
84-
).wait()
85-
has_errors = status != 0
86-
87-
if not has_errors:
88-
# Stage modifications by Prettier
89-
status = subprocess.Popen(['git', 'update-index', '--add'] + file_list).wait()
90-
has_errors = status != 0
91-
92-
return has_errors
9319

9420
def main():
9521
from flake8.hooks import run

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"babel-plugin-add-module-exports": "^0.2.1",
1313
"babel-plugin-idx": "^1.5.1",
1414
"babel-plugin-transform-builtin-extend": "^1.1.0",
15+
"babel-plugin-transform-class-properties": "^6.24.1",
1516
"babel-plugin-transform-object-rest-spread": "^6.20.2",
1617
"babel-polyfill": "6.20.0",
1718
"babel-preset-latest": "^6.16.0",
@@ -41,7 +42,7 @@
4142
"platformicons": "0.1.1",
4243
"po-catalog-loader": "^1.2.0",
4344
"query-string": "2.4.2",
44-
"raven-js": "3.15.0",
45+
"raven-js": "3.16.1",
4546
"react": "15.3.2",
4647
"react-addons-css-transition-group": "15.3.2",
4748
"react-addons-pure-render-mixin": "15.3.2",
@@ -103,5 +104,8 @@
103104
"sinon": "1.17.2",
104105
"sinon-chai": "2.8.0",
105106
"webpack-livereload-plugin": "^0.11.0"
107+
},
108+
"optionalDependencies": {
109+
"fsevents": "^1.1.2"
106110
}
107111
}

0 commit comments

Comments
 (0)