Skip to content

Commit 2ae74c5

Browse files
author
Lauren Chambers
authored
Merge pull request spacetelescope#431 from spacetelescope/release-0.20.0
Release 0.20.0 [master]
2 parents 0edc027 + 275f302 commit 2ae74c5

Some content is hidden

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

54 files changed

+1405
-815
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ docs/source/api/
1111
*.pytest_cache
1212
htmlcov/
1313
*.sqlite3
14+
jwql/website/static/*.csv

.pep8speaks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ message: # Customize the comment made by the bot
44
opened: # Messages when a new PR is submitted
55
header: "Hello @{name}, Thank you for submitting the Pull Request !"
66
# The keyword {name} is converted into the author's username
7-
footer: "If you have not done so, please consult the [`jwql` Style Guide](https://github.com/spacetelescope/jwql/blob/master/style_guide/style_guide.md)"
7+
footer: "If you have not done so, please consult the [`jwql` Style Guide](https://github.com/spacetelescope/jwql/blob/master/style_guide/README.md)"
88
# The messages can be written as they would over GitHub
99
updated: # Messages when new commits are added to the PR
1010
header: "Hello @{name}, Thank you for updating !"

CHANGES.rst

+40-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
0.20.0 (2019-06-05)
2+
===================
3+
4+
New Features
5+
------------
6+
7+
Project & API Documentation
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
10+
- Updated the notebook exemplifying how to perform an engineering database (EDB) telemetry query.
11+
- Updated the README for the ``style_guide`` directory.
12+
13+
Web Application
14+
~~~~~~~~~~~~~~~
15+
16+
- Added form on preview image pages to allow users to submit image anomalies.
17+
- Added buttons for users to download the results of EDB telemetry queries as CSV files.
18+
- Enabled users to search for or navigate to program numbers without requiring leading zeros (i.e. "756" is now treated equivalently to "00756").
19+
- Enabled authentication for EDB queries via the web login (rather than requiring authentication information to be present in the configuration file).
20+
- Added custom 404 pages.
21+
- Added adaptive redirect feature so that users are not sent back to the homepage after login.
22+
- Added more descriptive errors if a user tries to run the web application without filling out the proper fields in the configuration file.
23+
24+
``jwql`` Repository
25+
~~~~~~~~~~~~~~~~~~~
26+
27+
- Replaced all EDB interface code within ``jwql`` with the new ``jwedb`` `package<https://github.com/spacetelescope/jwst-dms-edb>`_.
28+
- Fully incorporated Python 3.5 testing into the Jenkins test suite.
29+
30+
Bug Fixes
31+
---------
32+
33+
Web Application
34+
~~~~~~~~~~~~~~~
35+
36+
- Fixed bug in which dashboard page would throw an error.
37+
- Fixed incorrect dashboard axis labels.
38+
39+
140
0.19.0 (2019-04-19)
241
===================
342

@@ -8,7 +47,7 @@ Project & API Documentation
847
~~~~~~~~~~~~~~~~~~~~~~~~~~~
948

1049
- Added guidelines to the style guide for logging the execution of instrument monitors
11-
- Added example useage of logging in the ``example.py`` module
50+
- Added example usage of logging in the ``example.py`` module
1251

1352
Web Application
1453
~~~~~~~~~~~~~~~

Jenkinsfile

+30-17
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
// Obtain files from source control system.
22
if (utils.scm_checkout()) return
33

4+
matrix_os = ["linux-stable"]
5+
matrix_python = ["3.5", "3.6"]
6+
matrix = []
7+
48
withCredentials([string(
59
credentialsId: 'jwql-codecov',
610
variable: 'codecov_token')]) {
711

8-
// Define each build configuration, copying and overriding values as necessary.
9-
bc0 = new BuildConfig()
10-
bc0.nodetype = "linux-stable"
11-
bc0.name = "debug"
12-
bc0.build_cmds = [
13-
"conda env update --file=environment.yml",
14-
"pip install codecov pytest-cov",
15-
"with_env -n jwql python setup.py install"]
16-
bc0.test_cmds = [
17-
"with_env -n jwql pytest -s --junitxml=results.xml --cov=./jwql/ --cov-report xml",
18-
"codecov --token=${codecov_token}"]
19-
20-
// bc1 = utils.copy(bc0)
21-
// bc1.build_cmds[0] = "conda install -q -y python=3.5"
12+
for (os in matrix_os) {
13+
for (python_ver in matrix_python) {
14+
// Define each build configuration, copying and overriding values as necessary.
15+
env_py = "_python_${python_ver}".replace(".", "_")
16+
bc = new BuildConfig()
17+
bc.nodetype = os
18+
bc.name = "debug-${os}-${env_py}"
19+
bc.conda_packages = ["python=${python_ver}"]
20+
bc.build_cmds = [
21+
"conda env update --file=environment${env_py}.yml",
22+
"pip install codecov pytest-cov",
23+
"python setup.py install"]
24+
bc.test_cmds = [
25+
"pytest -s --junitxml=results.xml --cov=./jwql/ --cov-report=xml:coverage.xml",
26+
"sed -i 's/file=\"[^\"]*\"//g;s/line=\"[^\"]*\"//g;s/skips=\"[^\"]*\"//g' results.xml",
27+
"codecov --token=${codecov_token}",
28+
"mkdir -v reports",
29+
"mv -v coverage.xml reports/coverage.xml"]
30+
matrix += bc
31+
}
32+
}
33+
// bc1 = utils.copy(bc0)
34+
// bc1.build_cmds[0] = "conda install -q -y python=3.5"
2235

23-
// Iterate over configurations that define the (distibuted) build matrix.
24-
// Spawn a host of the given nodetype for each combination and run in parallel.
25-
utils.run([bc0])
36+
// Iterate over configurations that define the (distibuted) build matrix.
37+
// Spawn a host of the given nodetype for each combination and run in parallel.
38+
utils.run(matrix)
2639
}

JenkinsfileRT

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if (utils.scm_checkout()) return
33

44
// Define each build configuration, copying and overriding values as necessary.
55
bc0 = new BuildConfig()
6-
bc0.nodetype = "linux-stable"
6+
bc0.nodetype = "linux"
77
bc0.name = "debug"
88
bc0.build_cmds = ["conda env update --file=environment.yml",
99
"with_env -n jwql python setup.py install"]
@@ -19,4 +19,5 @@ bc0.failedFailureThresh = 1
1919

2020
// Iterate over configurations that define the (distibuted) build matrix.
2121
// Spawn a host of the given nodetype for each combination and run in parallel.
22-
utils.run([bc0])
22+
utils.run([bc0])
23+

MANIFEST.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include README.md
22
include LICENSE
3-
include environment.yml
3+
include environment_python_3_5.yml
4+
include environment_python_3_6.yml
45
include setup.py
56

67
recursive-include notebooks *

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![Build Status](https://ssbjenkins.stsci.edu/job/STScI/job/jwql/job/master/badge/icon)](https://ssbjenkins.stsci.edu/job/STScI/job/jwql/job/master/)
1111
[![Documentation Status](https://readthedocs.org/projects/jwql/badge/?version=latest)](https://jwql.readthedocs.io/en/latest/?badge=latest)
1212
[![STScI](https://img.shields.io/badge/powered%20by-STScI-blue.svg?colorA=707170&colorB=3e8ddd&style=flat)](http://www.stsci.edu)
13+
[![codecov](https://codecov.io/gh/spacetelescope/jwql/branch/develop/graph/badge.svg)](https://codecov.io/gh/spacetelescope/jwql)
1314

1415

1516
The JWST Quicklook Application (`JWQL`) is a database-driven web application and automation framework for use by the JWST instrument teams to monitor and trend the health, stability, and performance of the JWST instruments. The system is comprised of the following:
@@ -57,22 +58,22 @@ instead, and then proceed as stated.
5758

5859
### Environment Installation
5960

60-
Following the download of the `jwql` repository, contributors can then install the `jwql` `conda` environment via the `environment.yml` file, which contains all of the dependencies for the project. First, one should ensure that their version of `conda` is up to date:
61+
Following the download of the `jwql` repository, contributors can then install the `jwql` `conda` environment via the environment yaml file, which contains all of the dependencies for the project. First, ensure that your version of `conda` is up to date:
6162

6263
```
6364
conda update conda
6465
```
6566

66-
Next, one should activate the `base` environment:
67+
Next, activate the `base` environment:
6768

6869
```
6970
source activate base
7071
```
7172

72-
Lastly, one can create the `jwql` environment via the `environment.yml` file:
73+
Lastly, create the `jwql` environment with either Python 3.5 or 3.6, via the `environment_python_3_5.yml` or `environment_python_3_6.yml` file, respectively. We recommend installing with the 3.6 version:
7374

7475
```
75-
conda env create -f environment.yml
76+
conda env create -f environment_python_3_6.yml
7677
```
7778

7879
### Package Installation
@@ -91,7 +92,7 @@ Much of the `jwql` software depends on the existence of a `config.json` file wit
9192

9293
## Software Contributions
9394

94-
There are two current pages to review before you begin contributing to the `jwql` development. The first is our [style guide](https://github.com/spacetelescope/jwql/blob/master/style_guide/style_guide.md) and the second is our [suggested git workflow page](https://github.com/spacetelescope/jwql/wiki/git-&-GitHub-workflow-for-contributing), which contains an in-depth explanation of the workflow.
95+
There are two current pages to review before you begin contributing to the `jwql` development. The first is our [style guide](https://github.com/spacetelescope/jwql/blob/master/style_guide/README.md) and the second is our [suggested git workflow page](https://github.com/spacetelescope/jwql/wiki/git-&-GitHub-workflow-for-contributing), which contains an in-depth explanation of the workflow.
9596

9697
Contributors are also encouraged to check out the [Checklist for Contributors Guide](https://github.com/spacetelescope/jwql/wiki/Checklist-for-Contributors-and-Reviewers-of-Pull-Requests) to ensure the pull request contains all of the necessary changes.
9798

codecov.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ codecov:
55
coverage:
66
precision: 2
77
round: down
8-
range: "70...100"
8+
range: "0...75"
99

1010
status:
11-
project: yes
12-
patch: yes
13-
changes: no
11+
project: off
12+
patch: off
13+
changes: off
1414

1515
parsers:
1616
gcov:
@@ -21,11 +21,15 @@ parsers:
2121
macro: no
2222

2323
comment:
24-
layout: "header, diff"
24+
layout: "header, diff, files"
2525
behavior: default
2626
require_changes: no
2727

2828
ignore:
29-
- "jwql/website/"
3029
- "jwql/database/"
31-
- "*__init__.py*"
30+
- "jwql/instrument_monitors/miri_monitors/data_trending/plots/"
31+
- "jwql/instrument_monitors/nirspec_monitors/data_trending/plots/"
32+
- "*__init__.py*"
33+
- "**/*.html"
34+
- "**/*.js"
35+
- "**/*.css"

docs/source/edb.rst

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
edb
33
***
44

5-
edb_interface.py
6-
----------------
7-
.. automodule:: jwql.edb.edb_interface
8-
:members:
9-
:undoc-members:
10-
115
engineering_database.py
126
-----------------------
137
.. automodule:: jwql.edb.engineering_database

docs/source/tests.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test_dark_monitor.py
2222

2323
test_edb_interface.py
2424
---------------------
25-
.. automodule:: jwql.tests.test_edb_interface
25+
.. automodule:: jwql.tests.test_edb
2626
:members:
2727
:undoc-members:
2828

@@ -38,6 +38,12 @@ test_loading_times.py
3838
:members:
3939
:undoc-members:
4040

41+
test_logging_functions.py
42+
-------------------------
43+
.. automodule:: jwql.tests.test_logging_functions
44+
:members:
45+
:undoc-members:
46+
4147
test_monitor_mast.py
4248
--------------------
4349
.. automodule:: jwql.tests.test_monitor_mast

environment_python_3_5.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
channels:
2+
- http://ssb.stsci.edu/astroconda-dev
3+
- defaults
4+
dependencies:
5+
- asdf=2.3.0
6+
- astropy>=3.1.2
7+
- astroquery=0.3.9
8+
- bokeh=0.13.0
9+
- crds>=7.2.7
10+
- django=2.1.1
11+
- inflection=0.3.1
12+
- ipython=6.5.0
13+
- jinja2=2.10
14+
- jwst=0.13.0
15+
- matplotlib=3.0.0
16+
- numpy=1.15.2
17+
- numpydoc=0.8.0
18+
- pandas=0.23.4
19+
- postgresql=9.6.6
20+
- psycopg2=2.7.5
21+
- python=3.5.6
22+
- python-dateutil=2.7.3
23+
- pytest=3.8.1
24+
- pytest-cov=2.6.0
25+
- pytest-html=1.19.0
26+
- sphinx=2.0.1
27+
- sphinx_rtd_theme=0.1.9
28+
- sqlalchemy=1.2.11
29+
- stsci_rtd_theme=0.0.2
30+
- pip:
31+
- authlib==0.10
32+
- codecov==2.0.15
33+
- jwedb>=0.0.3
34+
- pysiaf==0.2.5
35+
- sphinx-automodapi==0.10
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
name: jwql
21
channels:
32
- http://ssb.stsci.edu/astroconda-dev
43
- defaults
54
dependencies:
65
- asdf=2.3.1
76
- astropy>=3.1.2
87
- astroquery=0.3.9
9-
- bokeh=1.1.0
8+
- bokeh=1.2.0
109
- crds>=7.2.7
1110
- django=2.1.7
12-
- ipython=7.3.0
11+
- inflection=0.3.1
12+
- ipython=7.5.0
1313
- jinja2=2.10
1414
- jwst=0.13.1
1515
- matplotlib=3.0.2
16-
- numpy=1.16.2
17-
- numpydoc=0.8.0
16+
- numpy=1.16.4
17+
- numpydoc=0.9.0
1818
- pandas=0.24.2
1919
- postgresql=9.6.6
2020
- psycopg2=2.7.5
2121
- python=3.6.4
2222
- python-dateutil=2.7.5
23-
- pytest=4.4.0
23+
- pytest=4.5.0
2424
- pytest-cov=2.6.1
2525
- pytest-html=1.19.0
26-
- sphinx=1.8.5
26+
- sphinx=2.0.1
2727
- sphinx_rtd_theme=0.1.9
2828
- sqlalchemy=1.3.3
2929
- stsci_rtd_theme=0.0.2
3030
- pip:
3131
- authlib==0.10
3232
- codecov==2.0.15
33+
- jwedb>=0.0.3
3334
- pysiaf==0.2.5
3435
- sphinx-automodapi==0.10

0 commit comments

Comments
 (0)