Skip to content

Commit

Permalink
Merge pull request #1823 from SEED-platform/develop
Browse files Browse the repository at this point in the history
Release 2.4.2
  • Loading branch information
nllong committed Feb 19, 2019
2 parents 7d89c60 + b40c6cb commit 3652d77
Show file tree
Hide file tree
Showing 476 changed files with 3,445 additions and 2,776 deletions.
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

9 changes: 6 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# .git # For now add in the .git repo so that the version is parsed on the page correctly
.dockerignore
.idea
.tox
./docker-compose*.yml
./deploy.sh
**/*.pyc
collected_static
docs
media
node_modules
seed/static/vendors
vendors/node_modules
config/settings/local_untracked.py
config/settings/local_untracked.py.dist
/deploy.sh
/docker-*.yml
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"moment": true,
"protractor": true,
"qq": true,
"saveAs": true,
"Spinner": true
},
"plugins": ["angular", "lodash", "protractor"],
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
- [ ] Is there appropriate test coverage? (e.g. ChefSpec, Mocha/Chai, Python, etc.)
- [ ] Does this PR require a Selenium test? (e.g. Browser-specific bugs or complicated UI bugs)
- [ ] Does this PR require a regression test? All fixes require a regression test.
- [ ] Does this add new dependencies? If so, does PIP, npm, bower requirements need to be updated?
- [ ] Does this add new dependencies? If so, do pip or npm requirements need to be updated?
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ bpd/data/BEDES*
lin/migrations/disabled
htmlcov/
src/
*node_modules*
bower_components/
node_modules/

# JetBrainz tends to suggest a venv directory in the project root for virtual environments
venv/
Expand Down Expand Up @@ -77,3 +76,9 @@ docs/scripts/.python-version
docs/scripts/seed_issues.csv

lokalise.cfg

# Docker-based files
docker-compose.*.yml
!docker-compose.yml
!docker-compose.local.yml
!docker-compose.deploy.yml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group: deprecated-2017Q4
cache:
directories:
- node_modules
- seed/static/vendors/bower_components
- vendors/node_modules
- "$HOME/.pip-cache/"
- "$HOME/.nvm"
- ".tox"
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# SEED Version 2.4.2

Date Range: 01/05/19 - 02/19/19

Closed Issues:
- Fixed [#421]( https://github.com/SEED-platform/seed/issues/421 ), Reports - Message saying why there is no data
- Fixed [#1124]( https://github.com/SEED-platform/seed/issues/1124 ), Linux install instructions
- Fixed [#1626]( https://github.com/SEED-platform/seed/issues/1626 ), 403 Error deleting Inventory from Org in Admin
- Fixed [#1730]( https://github.com/SEED-platform/seed/issues/1730 ), Error importing BuildingSync File
- Fixed [#1738]( https://github.com/SEED-platform/seed/issues/1738 ), No email sent to set password when I created a new organization
- Feature [#1741]( https://github.com/SEED-platform/seed/issues/1741 ), BuildingSync batch import from UI
- Feature [#1782]( https://github.com/SEED-platform/seed/issues/1782 ), Add OEI to docker deployment
- Fixed [#1797]( https://github.com/SEED-platform/seed/issues/1797 ), Ability to remove user who only belongs to a single organization
- Fixed [#1800]( https://github.com/SEED-platform/seed/issues/1800 ), Add managed task for adding user to organization via cli
- Feature [#1801]( https://github.com/SEED-platform/seed/issues/1801 ), Add dropdown for actions on inventory detail page
- Fixed [#1807]( https://github.com/SEED-platform/seed/issues/1807 ), Only fields in property or tax lot DB are shown in mapping screen (not showing Extra Data fields)
- Fixed [#1812]( https://github.com/SEED-platform/seed/issues/1812 ), Merge screen doesn't show extra data fields
- Fixed [#1813]( https://github.com/SEED-platform/seed/issues/1813 ), When merging records, the merged records don't show up in the detail view, only the final Master Record
- Fixed [#1814]( https://github.com/SEED-platform/seed/issues/1814 ), Export contains (internal db?) ID

# SEED Version 2.4.1

Date Range: 10/06/18 - 01/04/19:
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ RUN pip install -r requirements/aws.txt
### Install JavaScript requirements - do this first because they take awhile
### and the dependencies will probably change slower than python packages.
### README.md stops the no readme warning
COPY ./bower.json /seed/bower.json
COPY ./.bowerrc /seed/.bowerrc
COPY ./package.json /seed/package.json
COPY ./vendors/package.json /seed/vendors/package.json
COPY ./README.md /seed/README.md
COPY ./bin/install_javascript_dependencies.sh /seed/bin/install_javascript_dependencies.sh
RUN npm update && /seed/bin/install_javascript_dependencies.sh
RUN npm update && npm install
WORKDIR /seed/vendors
RUN npm install

### Copy over the remaining part of the SEED application and some helpers
WORKDIR /seed
COPY . /seed/
COPY ./docker/wait-for-it.sh /usr/local/wait-for-it.sh

Expand Down
229 changes: 114 additions & 115 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,125 +1,124 @@

var tmp = require('tmp');
module.exports = function(grunt) {
grunt.initConfig({
// connect: {
// options: {
// port: 8000,
// hostname: 'localhost'
// },
// runtime: {
// options: {
// middleware: function (connect) {
// return [
// lrSnippet,
// mountFolder(connect, 'protractorInstrumented'),
// mountFolder(connect, '.......')
// ];
// }
// }
// }
module.exports = function (grunt) {
grunt.initConfig({
// connect: {
// options: {
// port: 8000,
// hostname: 'localhost'
// },
// runtime: {
// options: {
// middleware: function (connect) {
// return [
// lrSnippet,
// mountFolder(connect, 'protractorInstrumented'),
// mountFolder(connect, '.......')
// ];
// }
// }
// }
//
// // Before generating any new files, remove any previously-created files.
// },
clean: {
options: {
force: true
},
tests: ['tmp', 'build', 'protractorInstrumented', 'protractorCoverage', 'protractorReports', 'protractorSaved']
},
connect: {
server: {
options: {
port: 3000,
base: 'protractorInstrumented/seed/static/seed/js'
}
}
},
instrument: {
files: ['seed/static/seed/js/**/*.js', '!seed/static/seed/js/decorators/**/*.js', '!seed/static/seed/js/seed.js'],
options: {
lazy: true,
basePath: "protractorInstrumented"
}
},
copy: {
save: {
expand: true,
cwd: 'seed/static/seed/js',
src: '**',
dest: 'protractorSaved/'
},
instrument: {
expand: true,
cwd: 'protractorInstrumented/seed/static/seed/js',
src: '**',
dest: 'seed/static/seed/js/'
},
copyBack: {
expand: true,
cwd: 'protractorSaved',
src: '**',
dest: 'seed/static/seed/js/'
}
},
protractor_coverage: {
options: {
keepAlive: false, // If false, the grunt process stops when the test fails.
noColor: false,
coverageDir: 'protractorCoverage',
args: {
baseUrl: 'http://localhost:8000'
}
},
local: {
options: {
configFile: 'seed/static/seed/tests/protractor-tests/protractorConfigCoverage.js'
}
}
},
makeReport: {
src: 'protractorCoverage/**/*.json',
options: {
type: 'lcov',
dir: 'protractorReports',
print: ''
}
},
coveralls: {
main: {
src: 'protractorReports/**/*.info',
options: {
force: true
}
}
}
});

// Before generating any new files, remove any previously-created files.
// },
clean: {
options: {
force:true
},
tests: ['tmp', 'build', 'protractorInstrumented', 'protractorCoverage', 'protractorReports', 'protractorSaved'],
},
connect: {
server: {
options: {
port: 3000,
base: 'protractorInstrumented/seed/static/seed/js'
}
},
},
instrument: {
files: ['seed/static/seed/js/**/*.js','!seed/static/seed/js/decorators/**/*.js', '!seed/static/seed/js/seed.js'],
options: {
lazy: true,
basePath: "protractorInstrumented"
}
},
copy: {
'save': {
expand: true,
cwd: 'seed/static/seed/js',
src: '**',
dest: 'protractorSaved/'
},
'instrument': {
expand: true,
cwd: 'protractorInstrumented/seed/static/seed/js',
src: '**',
dest: 'seed/static/seed/js/'
},
'copyBack': {
expand: true,
cwd: 'protractorSaved',
src: '**',
dest: 'seed/static/seed/js/'
},
},
protractor_coverage: {
options: {
keepAlive: false, // If false, the grunt process stops when the test fails.
noColor: false,
coverageDir: 'protractorCoverage',
args: {
baseUrl: 'http://localhost:8000'
}
},
local: {
options: {
configFile: 'seed/static/seed/tests/protractor-tests/protractorConfigCoverage.js'
}
}
},
makeReport: {
src: 'protractorCoverage/**/*.json',
options: {
type: 'lcov',
dir: 'protractorReports',
print: ''
}
},
coveralls: {
main:{
src: 'protractorReports/**/*.info',
options: {
force: true
},
},
},
});
// Actually load this plugin's task(s).
// grunt.loadTasks('tasks');

// Actually load this plugin's task(s).
// grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-protractor-coverage');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-istanbul');
grunt.loadNpmTasks('grunt-coveralls');

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-protractor-coverage');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-istanbul');
grunt.loadNpmTasks('grunt-coveralls');
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.

// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
//same as npm test more or less
// grunt.registerTask('coverage', ['protractor_coverage:local']);

//same as npm test more or less
// grunt.registerTask('coverage', ['protractor_coverage:local']);

//don't use instrumented code
// grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'protractor_coverage:local', 'copy:copyBack']);
//don't use instrumented code
// grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'protractor_coverage:local', 'copy:copyBack']);

//without coveralls
grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'copy:instrument', 'protractor_coverage:local', 'copy:copyBack', 'makeReport']);
grunt.registerTask('report', ['makeReport']);
//without coveralls
grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'copy:instrument', 'protractor_coverage:local', 'copy:copyBack', 'makeReport']);
grunt.registerTask('report', ['makeReport']);

//with coveralls
// grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'copy:instrument', 'protractor_coverage:local', 'copy:copyBack', 'makeReport', 'coveralls']);
//with coveralls
// grunt.registerTask('coverage', ['clean', 'copy:save', 'instrument', 'copy:instrument', 'protractor_coverage:local', 'copy:copyBack', 'makeReport', 'coveralls']);

grunt.registerTask('test', ['coverage']);
grunt.registerTask('test', ['coverage']);
};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 – 2018, The Regents of the University of California, through
Copyright (c) 2014 – 2019, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required approvals
from the U.S. Department of Energy) and contributors. All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ celery -A seed worker -l info -c 4 --maxtasksperchild 1000 --events
* Running tests: See [Testing Notes][developer-testing-notes]

### Copyright
Copyright © 2014 - 2018, The Regents of the University of California, through
Copyright © 2014 - 2019, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from the U.S. Department of Energy) and contributors. All rights
reserved.
Expand Down
2 changes: 1 addition & 1 deletion bin/check_compressed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
:copyright (c) 2014 - 2018, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Department of Energy) and contributors. All rights reserved. # NOQA
:copyright (c) 2014 - 2019, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Department of Energy) and contributors. All rights reserved. # NOQA
:author
"""
#!/usr/bin/env python
Expand Down
6 changes: 2 additions & 4 deletions bin/install_javascript_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
# installs npm and bower dependencies
# installs npm dependencies
# assumes npm is installed

echo "Installing npm dependencies from packages.json"
echo "Installing npm dependencies from package.json"
npm install
echo -e "\n\n\nInstalling bower dependencies from bower.json"
$(npm bin)/bower install --config.interactive=false --allow-root

0 comments on commit 3652d77

Please sign in to comment.