Skip to content

Commit

Permalink
Merge pull request #1723 from SEED-platform/develop
Browse files Browse the repository at this point in the history
Release 2.4.0
  • Loading branch information
nllong committed Oct 5, 2018
2 parents 1a8cd10 + 982b9e4 commit 74239e5
Show file tree
Hide file tree
Showing 197 changed files with 22,796 additions and 16,261 deletions.
3 changes: 2 additions & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"directory" : "seed/static/vendors/bower_components"
"directory" : "seed/static/vendors/bower_components",
"registry": "https://registry.bower.io"
}
146 changes: 73 additions & 73 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"jasmine": true,
"jquery": true
},
"globals": {
"_": true,
"$filter": true,
"$route": true,
"angular": true,
"angularDragula": true,
"BE": true,
"dimple": true,
"inject": true,
"module": true,
"moment": true,
"protractor": true,
"qq": true,
"Spinner": true
},
"plugins": ["angular", "lodash", "protractor"],
"rules": {
// Possible errors
"no-console": "warn",
// Best practices
"block-scoped-var": "warn",
"dot-notation": "warn",
"no-multi-spaces": "warn",
// Variables
"no-unused-vars": "warn",
// Stylistic Issues
"array-bracket-spacing": "warn",
"brace-style": "warn",
// "camelcase": "warn",
"comma-dangle": ["error", "never"],
"comma-spacing": "warn",
// "consistent-this": ["error", "that"],
"eol-last": "error",
"indent": ["error", 2, {"SwitchCase": 1}],
"key-spacing": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-trailing-spaces": "warn",
"quote-props": ["error", "as-needed", {"keywords": true}],
"quotes": ["warn", "single"],
"semi": ["error", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-infix-ops": "warn",
// Angular plugin
"angular/log": "off", // Comment for production
"angular/no-service-method": "off",
// Lodash plugin
"lodash/callback-binding": "error",
"lodash/collection-return": "error",
"lodash/matches-prop-shorthand": ["warn", "always"],
"lodash/matches-shorthand": ["warn", "always"],
"lodash/no-double-unwrap": "error",
"lodash/no-extra-args": "error",
"lodash/prefer-constant": "warn",
"lodash/prefer-filter": ["warn", 3],
"lodash/prefer-get": ["warn", 2],
"lodash/prefer-is-nil": "warn",
"lodash/prefer-lodash-typecheck": "warn",
"lodash/prefer-matches": ["warn", 2],
"lodash/prefer-startswith": "warn",
"lodash/prefer-times": "warn",
"lodash/preferred-alias": "warn",
"lodash/prop-shorthand": ["warn", "always"],
"lodash/unwrap": "error"
}
}
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"jasmine": true,
"jquery": true
},
"globals": {
"_": true,
"$filter": true,
"$route": true,
"angular": true,
"angularDragula": true,
"BE": true,
"dimple": true,
"inject": true,
"module": true,
"moment": true,
"protractor": true,
"qq": true,
"Spinner": true
},
"plugins": ["angular", "lodash", "protractor"],
"rules": {
// Possible errors
"no-console": "warn",
// Best practices
"block-scoped-var": "warn",
"dot-notation": "warn",
"no-multi-spaces": "warn",
// Variables
"no-unused-vars": "warn",
// Stylistic Issues
"array-bracket-spacing": "warn",
"brace-style": "warn",
// "camelcase": "warn",
"comma-dangle": ["error", "never"],
"comma-spacing": "warn",
// "consistent-this": ["error", "that"],
"eol-last": "error",
"indent": ["error", 2, {"SwitchCase": 1}],
"key-spacing": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-trailing-spaces": "warn",
"quote-props": ["error", "as-needed", {"keywords": true}],
"quotes": ["warn", "single"],
"semi": ["error", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-infix-ops": "warn",
// Angular plugin
"angular/log": "off", // Comment for production
"angular/no-service-method": "off",
// Lodash plugin
"lodash/callback-binding": "error",
"lodash/collection-return": "error",
"lodash/matches-prop-shorthand": ["warn", "always"],
"lodash/matches-shorthand": ["warn", "always"],
"lodash/no-double-unwrap": "error",
"lodash/no-extra-args": "error",
"lodash/prefer-constant": "warn",
"lodash/prefer-filter": ["warn", 3],
"lodash/prefer-get": ["warn", 2],
"lodash/prefer-is-nil": "warn",
"lodash/prefer-lodash-typecheck": "warn",
"lodash/prefer-matches": ["warn", 2],
"lodash/prefer-startswith": "warn",
"lodash/prefer-times": "warn",
"lodash/preferred-alias": "warn",
"lodash/prop-shorthand": ["warn", "always"],
"lodash/unwrap": "error"
}
}
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
#*.c text
#*.h text

# Declare files that will always have CRLF line endings on checkout.
#*.sln text eol=crlf

# Declare files that will always have LF line endings on checkout.
*.sh text eol=lf
*.py text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bower_components/

package-lock.json
dump.rdb
log
log/*.log
*.log
.tox
Vagrantfile
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ install:
- pip install tox==2.7.0
- node --version
- npm --version
- npm install npm@latest -g
- nvm install stable
before_script:
- export DISPLAY=:99.0
Expand Down
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
# SEED Version 2.4.0

Date Range: 07/04/18 - 10/05/18:

Closed Issues: 32
- Fixed [#239]( https://github.com/SEED-platform/seed/issues/239 ), Rearchitect the progress API interactions
- Fixed [#711]( https://github.com/SEED-platform/seed/issues/711 ), Associating and disassociating orgs causes account to become disfuctional
- Fixed [#873]( https://github.com/SEED-platform/seed/issues/873 ), "NoneType object is not iterable" in _match_buildings
- Fixed [#876]( https://github.com/SEED-platform/seed/issues/876 ), Upgrade fine-uploader
- Fixed [#1172]( https://github.com/SEED-platform/seed/issues/1172 ), Mapping Review Screen - field name case and punctuation
- Fixed [#1200]( https://github.com/SEED-platform/seed/issues/1200 ), allow for user to manage column mappings
- Fixed [#1408]( https://github.com/SEED-platform/seed/issues/1408 ), DQ checking not working for specific case
- Fixed [#1497]( https://github.com/SEED-platform/seed/issues/1497 ), File hangs on matching
- Fixed [#1548]( https://github.com/SEED-platform/seed/issues/1548 ), ESPM Auto Import -- Import file name
- Fixed [#1565]( https://github.com/SEED-platform/seed/issues/1565 ), Error importing large ESPM file
- Fixed [#1582]( https://github.com/SEED-platform/seed/issues/1582 ), Reports not displaying data
- Fixed [#1585]( https://github.com/SEED-platform/seed/issues/1585 ), Error 400 when unmerging record
- Fixed [#1601]( https://github.com/SEED-platform/seed/issues/1601 ), Performance is quite slow moving between different views (Detail to List, etc)
- Fixed [#1608]( https://github.com/SEED-platform/seed/issues/1608 ), Improve Matching Performance
- Fixed [#1646]( https://github.com/SEED-platform/seed/issues/1646 ), Value edited in Detail view is overwritten when old data is again imported into SEED
- Fixed [#1654]( https://github.com/SEED-platform/seed/issues/1654 ), 500 Error when logging into ESPM from SEED
- Fixed [#1660]( https://github.com/SEED-platform/seed/issues/1660 ), Fields are not being displayed in the Detail view for either Property or Tax Lot
- Fixed [#1667]( https://github.com/SEED-platform/seed/issues/1667 ), DQ Export not working from Inventory List -- server failed error
- Fixed [#1668]( https://github.com/SEED-platform/seed/issues/1668 ), New Mapping Page layout makes it hard to compare the file header with the SEED header
- Fixed [#1672]( https://github.com/SEED-platform/seed/issues/1672 ), Inventory export -- Excel puts up error message, but then opens it
- Fixed [#1681]( https://github.com/SEED-platform/seed/issues/1681 ), Suborganization error message unclear
- Fixed [#1682]( https://github.com/SEED-platform/seed/issues/1682 ), Suborganization error uploading data
- Fixed [#1683]( https://github.com/SEED-platform/seed/issues/1683 ), SEED shouldn't allow suborgs of suborgs
- Fixed [#1685]( https://github.com/SEED-platform/seed/issues/1685 ), Import Building Sync file from Audit Report Template
- Fixed [#1686]( https://github.com/SEED-platform/seed/issues/1686 ), Suborganization list settings don't work
- Fixed [#1689]( https://github.com/SEED-platform/seed/issues/1689 ), Importing file with crlf and blank line returns causes errors
- Fixed [#1692]( https://github.com/SEED-platform/seed/issues/1692 ), Error clicking "i" Nav Button
- Fixed [#1694]( https://github.com/SEED-platform/seed/issues/1694 ), Settings profile field list is reversed on save when saving the first Settings Profile
- Fixed [#1696]( https://github.com/SEED-platform/seed/issues/1696 ), 502 error displaying inventory in org with large number of records
- Fixed [#1698]( https://github.com/SEED-platform/seed/issues/1698 ), Add the ability to not overwrite the data by column on merge
- Fixed [#1702]( https://github.com/SEED-platform/seed/issues/1702 ), Test the spinner visibility during routing transitions
- Fixed [#1707]( https://github.com/SEED-platform/seed/issues/1707 ), Site EUI (kBtu/ft²) & Source EUI (kBtu/ft²) fields are not imported with autoimport from ESPM

Accepted Pull Requests: 25
- Fixed [#1661]( https://github.com/SEED-platform/seed/pull/1661 ), Address PM Import Error
- Fixed [#1674]( https://github.com/SEED-platform/seed/pull/1674 ), Report proper filename for uploaded_filename during PM import
- Fixed [#1676]( https://github.com/SEED-platform/seed/pull/1676 ), Improve progress bar functionality
- Fixed [#1677]( https://github.com/SEED-platform/seed/pull/1677 ), ID in CSV causing Excel to throw warnings
- Fixed [#1680]( https://github.com/SEED-platform/seed/pull/1680 ), Remove unused classes and cleanup deprecated code
- Fixed [#1684]( https://github.com/SEED-platform/seed/pull/1684 ), Hash object upon save
- Fixed [#1687]( https://github.com/SEED-platform/seed/pull/1687 ), Fix and cleanup suborganizations
- Fixed [#1688]( https://github.com/SEED-platform/seed/pull/1688 ), Buildingsync upload merge develop
- Fixed [#1690]( https://github.com/SEED-platform/seed/pull/1690 ), Fix first_five_rows method to be more flexible
- Fixed [#1691]( https://github.com/SEED-platform/seed/pull/1691 ), Fix privilege escalation bug
- Fixed [#1695]( https://github.com/SEED-platform/seed/pull/1695 ), Add transactions
- Fixed [#1697]( https://github.com/SEED-platform/seed/pull/1697 ), BuildingSync Upload
- Fixed [#1699]( https://github.com/SEED-platform/seed/pull/1699 ), Field by field merging preferences
- Fixed [#1700]( https://github.com/SEED-platform/seed/pull/1700 ), Fixed the spinner visibility during routing transitions
- Fixed [#1701]( https://github.com/SEED-platform/seed/pull/1701 ), Inventory Performance
- Fixed [#1703]( https://github.com/SEED-platform/seed/pull/1703 ), Strip spaces around value before typecasting
- Fixed [#1704]( https://github.com/SEED-platform/seed/pull/1704 ), Change default org to user first org available
- Fixed [#1705]( https://github.com/SEED-platform/seed/pull/1705 ), Inventory View Fixes
- Fixed [#1706]( https://github.com/SEED-platform/seed/pull/1706 ), Create default columns managed task, fix unicode error in mapping
- Fixed [#1708]( https://github.com/SEED-platform/seed/pull/1708 ), Update BuildingSync Upload
- Fixed [#1709]( https://github.com/SEED-platform/seed/pull/1709 ), Fix the reversed column order when saving a new settings profile
- Fixed [#1710]( https://github.com/SEED-platform/seed/pull/1710 ), Fix csv import
- Fixed [#1714]( https://github.com/SEED-platform/seed/pull/1714 ), Docker timeouts
- Fixed [#1720]( https://github.com/SEED-platform/seed/pull/1720 ), Fix pint cleaner and mapping error
- Fixed [#1721]( https://github.com/SEED-platform/seed/pull/1721 ), Handle Duplicate Measure IDs in BuildingSync Uploads

# SEED Version 2.3.3

Date Range: 05/31/18 - 07/04/18:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
enchant \
vim \
curl \
&& pip install --upgrade pip==9.0.3 \
&& pip install setuptools \
&& pip install --upgrade pip==18.0 \
&& groupadd --gid 1000 uwsgi \
&& useradd -g uwsgi -M -u 1000 -r uwsgi \
&& rm -rf /var/lib/apt/lists/* \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ reserved.
[read-the-docs-latest-img]: https://readthedocs.io/projects/seed-platform/badge/?version=latest
[travis-img]: https://travis-ci.org/SEED-platform/seed.svg?branch=develop
[travis-url]: https://travis-ci.org/SEED-platform/seed
[coveralls-img]: https://coveralls.io/repos/SEED-platform/seed/badge.svg
[coveralls-url]: https://coveralls.io/github/SEED-platform/seed
[coveralls-img]: https://coveralls.io/repos/github/SEED-platform/seed/badge.svg?branch=HEAD
[coveralls-url]: https://coveralls.io/github/SEED-platform/seed?branch=HEAD
4 changes: 2 additions & 2 deletions bin/check_compressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

c = call(['python manage.py compress --force'], stdout=open('/dev/null', 'w'), shell=True)
if c == 0:
print "compression passed"
print("compression passed")
else:
print "compression failed"
print("compression failed")

import sys
sys.exit(c)
17 changes: 1 addition & 16 deletions bin/install_javascript_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
#!/usr/bin/env bash
# installs npm dependencies, bower dependencies, and builds fine-uploader
# installs npm and bower dependencies
# assumes npm is installed

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

if [ ! -f seed/static/vendors/bower_components/fine-uploader/_build/s3.fineuploader.js ];
then
grunt=$(npm bin)/grunt
cd seed/static/vendors/bower_components/fine-uploader/
echo -e "\n\n\nBuilding fineuploader"
# Fix uglification error
sed -i -e 's/compress: true/compress: \{\}/g' Gruntfile.coffee
npm install
$grunt build
rm -rf node_modules
cd ../../../../../
else
echo -e "\n\n\nFineuploader already built"
fi
23 changes: 12 additions & 11 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"tests"
],
"dependencies": {
"angular": "~1.6.8",
"angular-animate": "~1.6.8",
"angular-aria": "~1.6.8",
"angular": "~1.6.10",
"angular-animate": "~1.6.10",
"angular-aria": "~1.6.10",
"angular-bootstrap": "~1.3.3",
"angular-cookies": "~1.6.8",
"angular-mocks": "~1.6.8",
"angular-sanitize": "~1.6.8",
"angular-ui-grid": "=4.0.2",
"angular-cookies": "~1.6.10",
"angular-mocks": "~1.6.10",
"angular-sanitize": "~1.6.10",
"angular-ui-grid": "=4.0.6",
"angular-ui-notification": "~0.3.5",
"angular-ui-router": "~0.3.2",
"angular-ui-router": "~1.0.20",
"angular-ui-router.stateHelper": "~1.3.1",
"angular-ui-sortable": "~0.13.4",
"angular-ui-tree": "~2.10.0",
Expand All @@ -27,7 +27,7 @@
"d3": "=3.5.2",
"dimple": "=2.2.0",
"file-saver": "=1.3.3",
"fine-uploader": "git://github.com/FineUploader/fine-uploader.git#3.9.1",
"fine-uploader": "https://github.com/FineUploader/fine-uploader/releases/download/5.16.2/all.fine-uploader.zip",
"font-awesome": "~4.4.0",
"jasmine-core": "=1.3.1",
"jquery": "~2.2.4",
Expand All @@ -45,7 +45,8 @@
"raven-js": "~3.22.1"
},
"resolutions": {
"angular": "~1.6.8",
"angular-ui-router": "~0.3.2"
"angular": "~1.6.10",
"angular-ui-router": "~1.0.20",
"angular-translate": "~2.16.0"
}
}
1 change: 1 addition & 0 deletions config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

SESSION_COOKIE_DOMAIN = None
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
DATA_UPLOAD_MAX_MEMORY_SIZE = None

# TODO: remove managers, admins in config files.
ADMINS = (
Expand Down
8 changes: 7 additions & 1 deletion config/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import absolute_import
import os
import sys
import logging

from celery.utils import LOG_LEVELS

Expand Down Expand Up @@ -55,7 +56,7 @@
CELERY_BROKER_BACKEND = 'memory'
CELERY_TASK_ALWAYS_EAGER = True
CELERY_TASK_EAGER_PROPAGATES = True
CELERY_LOG_LEVEL = LOG_LEVELS['DEBUG']
CELERY_LOG_LEVEL = LOG_LEVELS['WARNING']

# Testing
INSTALLED_APPS += (
Expand Down Expand Up @@ -97,3 +98,8 @@
from config.settings.local_untracked import * # noqa
else:
print >> sys.stderr, "Unable to find the local_untracked module in config/settings/local_untracked.py"


# suppress some logging -- only show warnings or greater
logging.getLogger('faker.factory').setLevel(logging.ERROR)
logging.disable(logging.WARNING)
Loading

0 comments on commit 74239e5

Please sign in to comment.