Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ instance_config.json
### Web Server Cache ###
cache_dir

### Unit Test Files###
### Unit Test Files ###
results/
test/integration_tests/dev/results
test/integration_tests/prod/results
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COMPOSE_COMMAND := DOCKER_HOST=$(DOCKER_HOST) docker compose -p $(PROJECT_NAME)
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -_]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done

configure:
configure:
scp ./prod/nginx/nginx_vhost_default_location $(WEB_REMOTE):${NGINX_VHOST}

lint-python: # Lint only the python files that have changed on this branch, with respect to master. (You can run `make lint-python COMMIT=<my-commit>` e.g. `make lint-python COMMIT=HEAD~1` to lint the files that have changed on the last commit.)
Expand All @@ -30,14 +30,14 @@ lint-js: # Lint only the js and jsx files that have changed on this branch, with
COMMIT=$(COMMIT) ./scripts/lint_js.sh

lint: lint-python lint-js # Lint only the python, js and jsx files that have changed on this branch, with respect to master. (You can run `make lint COMMIT=<my-commit>` e.g. `make lint COMMIT=HEAD~1` to lint the files that have changed on the last commit.)

black: # Run black on all python files that have changed on this branch, with respect to master. (You can run `make black COMMIT=<my-commit>` e.g. `make black COMMIT=origin/master` to lint the files that have changed with respect to origin/master.)
COMMIT=$(COMMIT) ./scripts/format_python.sh

build: # Build docker images (for development and production) using docker compose.
docker compose --env-file $(ENV_FILE) -f docker-compose.build.yaml build $(SERVICE)

convert: # Use the "docker compose config" command to render the compose file. (Useful to see the impact of environment variables.)
convert: # Use the "docker compose config" command to render the compose file. (Useful to see the impact of environment variables.)
$(COMPOSE_COMMAND) config

create-db-setup-script: # Create the db setup script.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ For many Harmony projects, the free tier of Mapbox will be sufficient. Refer to

When you run a script or the web server, select a configuration by setting the `ZEN_ENV` environmental variable. This environmental variable maps directly to folder names in `config/`, and will cause the `config` module to export the contents of that particular configuration.

Say there is configuration directory named `usa`. We can specify that configuration with the following:
Say there is configuration directory named `usa`. We can specify that configuration with the following:

```bash
export ZEN_ENV='usa'
```
```bash
export ZEN_ENV='usa'
```

## Local development setup

Expand Down
6 changes: 3 additions & 3 deletions docker/pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ RUN apt-get update \
build-essential \
# wget: may be used in a pipeline step to download files.
wget \
# cmake: is needed for installing proj.
# cmake: is needed for installing proj.
cmake \
# curl: may be used in a pipeline step.
curl \
# sqlite: is needed for building proj?
sqlite3 \
sqlite3 \
# libsqlite3-dev: required for building proj.
libsqlite3-dev \
# libtiff-dev: is needed for building proj.
Expand Down Expand Up @@ -174,4 +174,4 @@ COPY scripts ./scripts
ENV ZEN_HOME /zenysis
ENV R77_SRC_ROOT /zenysis
ENV PYTHONPATH /zenysis
ENV USER zenysis
ENV USER zenysis
2 changes: 1 addition & 1 deletion druid_setup/single/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
image: postgres:latest
restart: always
ports:
# expose postgres port to host on a non standard port, to avoid
# expose postgres port to host on a non standard port, to avoid
# possible conflicts with other postgres instances.
- "5431:5432"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion models/python/dashboard/scripts/create_new_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ TEST_UPGRADE_DOWNGRADE=" def test_upgrade_downgrade_${NEW_VERSION_UNDERSCORE}
self.assertEqual(my_dashboard_spec_dict, downgraded_spec_dict, diff)"

echo -e "\n${TEST_UPGRADE_DOWNGRADE}" >> models/python/dashboard/tests/test_schema_upgrade_downgrade.py

echo '(9/10) Adding all new files to git'
git add \
"${ZEN_SRC_ROOT}/models/python/dashboard/${SCHEMA_DIR_NAME}" \
Expand Down
4 changes: 2 additions & 2 deletions prod/cron/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# IMPORTANT NOTE: Ideally the pipeline should be run by some orchestration
# /automation framework.
#
#
# Pre-requisites:
# - The administrator user is authenticated with the container registry.
# - The Harmony repository is cloned (or the required files are copied) to
Expand All @@ -32,4 +32,4 @@ COMMAND="./pipeline/$ZEN_ENV/process/process_all" DOCKER_HOST= docker compose --
COMMAND="./pipeline/$ZEN_ENV/index/index_all" DOCKER_HOST= docker compose --project-name harmony-etl-pipeline-$ZEN_ENV-index --env-file /home/ubuntu/Harmony/.env.harmony.pipeline -f /home/ubuntu/Harmony/docker-compose.pipeline.yaml up --exit-code-from etl-pipeline

# Run validate
COMMAND="./pipeline/$ZEN_ENV/validate/validate_all" DOCKER_HOST= docker compose --project-name harmony-etl-pipeline-$ZEN_ENV-validate --env-file /home/ubuntu/Harmony/.env.harmony.pipeline -f /home/ubuntu/Harmony/docker-compose.pipeline.yaml up --exit-code-from etl-pipeline
COMMAND="./pipeline/$ZEN_ENV/validate/validate_all" DOCKER_HOST= docker compose --project-name harmony-etl-pipeline-$ZEN_ENV-validate --env-file /home/ubuntu/Harmony/.env.harmony.pipeline -f /home/ubuntu/Harmony/docker-compose.pipeline.yaml up --exit-code-from etl-pipeline
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ gspread>=5.4.0
# first install `grpcio==1.26.0` and then install the google-cloud-logging.
google-cloud-logging==1.11.0 ; platform_python_implementation != 'PyPy'

# With PyPy shapely ends up pulling in numpy 1.21.0, for when we get to the pipeline step, so not sure why we
# With PyPy shapely ends up pulling in numpy 1.21.0, for when we get to the pipeline step, so not sure why we
# don't use the same version for both.
# On M1, with PyPy running native, 1.21.0 can't install.
# I change to `numpy==1.21.0` (not exlusions) and ran:
Expand Down Expand Up @@ -87,4 +87,4 @@ openpyxl>=3.0.9
ijson-bigint==3.2.0.post1

types-jsonschema==4.17.0.8
future==0.18.3
future==0.18.3
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function DownloadableImageElement({

return (
<React.Fragment>
{/*
{/*
NOTE: Hidden element that updates DownloadableElement Elt via onRender
The Element rendered under scaled div bellow makes distorted images due to parent divs' scaling.
*/}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ export default class QueryFormPanel extends React.PureComponent<Props, State> {
// clear existing data so it will show loading
this.setState(
{ analyticalInsightsData: undefined, loadingAnalyticalInsights: false },
() => {
},
() => {},
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Props = {
>,

/**
* extracted filters to apply to the display custom values in
* extracted filters to apply to the display custom values in
* the text box
*/
extractedFilterItems: $ReadOnlyArray<QueryFilterItem>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import type { TilePosition } from 'models/DashboardBuilderApp/DashboardItem/Dash

type Props = {
cellsPerRow: number,

/**
* extracted filters to apply to the display custom values in
* extracted filters to apply to the display custom values in
* the text box
*/
extractedFilterItems: $ReadOnlyArray<QueryFilterItem>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Props = {
>,

extractedFilterItems: $ReadOnlyArray<QueryFilterItem>,

item: DashboardItemType,
onHeightUpdate?: (rowCount: number) => void,
onItemChange: DashboardItemType => void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function useDimensionList(
if (categories.length === 0) {
return undefined;
}

// NOTE: Right now we are only expecting dimensions to live
// within a single parent category. That category cannot be nested
// further beneath another category. This assumption is valid right now,
Expand Down
2 changes: 1 addition & 1 deletion web/client/lib/I18N/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function I18NRef(props: {
* { count: 0 },
* );
*/
/* ::
/* ::
declare function text(
contents: string,
idOrConfig?: string | TranslationConfig,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.aqt-customizable-filter-tag:hover {
/* background-image is used instead of background-color
/* background-image is used instead of background-color
since we needed to override the blue gradient */
background-image: linear-gradient(
to right,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
}

&__tile-wrapper {
&__tile-wrapper {
cursor: initial;

// Using the react grid layout resize handles because rgl translates them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body.dashboard-modern-mode .gd-dashboard-text-tile {
margin-left: 0;
margin-right: 0;
margin-top: 0;

padding-bottom: calc-em($padding-bottom-px, $font-size-px);
padding-left: calc-em($padding-left-px, $font-size-px);
padding-right: calc-em($padding-right-px, $font-size-px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
white-space: normal;
}


&__control-label {
color: $slate-hover;
font-size: 14px;
Expand All @@ -29,9 +29,9 @@
}

.pivot-modal-over-popover-hack {
// EXTREME NOTE: popovers are at 9999 and modals are at 9999.
// Reducing the z index of the dropdown would put it behind the Settings
// Modal. This is needed because this is a modal on top of a dropdown on
// EXTREME NOTE: popovers are at 9999 and modals are at 9999.
// Reducing the z index of the dropdown would put it behind the Settings
// Modal. This is needed because this is a modal on top of a dropdown on
// top of a modal. We need to use important to get the React-Modal
// imported component to respect this z index.
z-index: 100000 !important;
Expand Down
4 changes: 2 additions & 2 deletions web/server/routes/views/validate_data_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def validate_import_file(
if status_code == 200:
response[
'validationMessage'
] = '''The uploaded file passed validation.
] = '''The uploaded file passed validation.
No conflicts were found with the existing instance metadata.
'''
if response['validationSummary']:
Expand All @@ -487,7 +487,7 @@ def validate_import_file(
elif status_code == 409:
response[
'validationMessage'
] = '''The uploaded file failed validation.
] = '''The uploaded file failed validation.
Conflicts were found with the existing instance metadata.
'''

Expand Down
4 changes: 2 additions & 2 deletions web/server/templates/data_catalog_changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h5 class="text-danger">Deleted Records</h5>
</table>
<hr>
{% endif %}

{% if table_changes.modified_records| length > 0 %}
<h5>Modified Records</h5>
{% for row_grouping in table_changes.modified_records %}
Expand Down Expand Up @@ -115,4 +115,4 @@ <h5>Modified Records</h5>
{% endfor %}
</div>
</body>
</html>
</html>
5 changes: 2 additions & 3 deletions web/server/templates/emails/access_granted_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{email_header}}
</p>

<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{intro}}
</p>
Expand All @@ -16,7 +16,7 @@
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="250" style="border-radius: 5px;" height="50" bgcolor="#5b92e5" style="text-align:center;">
<a href="{{dashboard_link}}" align="center"
<a href="{{dashboard_link}}" align="center"
style="font-family:'Open Sans',Calibri, Arial, sans-serif;; font-size:15px; color:#ffffff; text-align: center; line-height:50px; display:block; text-decoration:none;border-radius:100%; ">{{btn_text}}</a>
</td>
<td>&nbsp;</td>
Expand All @@ -34,7 +34,6 @@
&nbsp;
</p>
</td>

</tr>
{% endblock %}

Expand Down
6 changes: 2 additions & 4 deletions web/server/templates/emails/alert_notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{email_header}}
</p>

<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{intro}}
</p>
Expand All @@ -16,7 +15,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="250" style="border-radius: 5px;" height="50" bgcolor="#5b92e5" style="text-align:center;">
<a href="{{alerts_link}}" align="center"
<a href="{{alerts_link}}" align="center"
style="font-family:'Open Sans',Calibri, Arial, sans-serif;; font-size:15px; color:#ffffff; text-align: center; line-height:50px; display:block; text-decoration:none;border-radius:100%; ">{{btn_text}}</a>
</td>
<td>&nbsp;</td>
Expand Down Expand Up @@ -51,7 +50,6 @@
<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px;">{{previous_alert_txt}}</p>
</td>
</tr>

<tr>
<td>
<table style="border-spacing: 50px;" border="0" cellspacing="0" cellpadding="0">
Expand All @@ -74,7 +72,7 @@
{% endfor %}
</table>
</td>
</tr>
</tr>
{% else %}
<tr>
<td>
Expand Down
3 changes: 1 addition & 2 deletions web/server/templates/emails/invitation_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{email_header}}
</p>

<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{intro}}
</p>
Expand All @@ -16,7 +15,7 @@
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="250" style="border-radius: 5px;" height="50" bgcolor="#5b92e5" style="text-align:center;">
<a href="{{invite_link}}" align="center"
<a href="{{invite_link}}" align="center"
style="font-family:'Open Sans',Calibri, Arial, sans-serif;; font-size:15px; color:#ffffff; text-align: center; line-height:50px; display:block; text-decoration:none;border-radius:100%; ">{{btn_text}}</a>
</td>
<td>&nbsp;</td>
Expand Down
4 changes: 1 addition & 3 deletions web/server/templates/emails/new_dashboard_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{email_header}}
</p>

<p style="font-family: 'Open Sans','Helvetica Neue', 'Helvetica',Calibri, Arial, sans-serif; font-size:15px; line-height:26px;">
{{intro}}
</p>
Expand All @@ -16,7 +15,7 @@
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="250" style="border-radius: 5px;" height="50" bgcolor="#5b92e5" style="text-align:center;">
<a href="{{dashboard_link}}" align="center"
<a href="{{dashboard_link}}" align="center"
style="font-family:'Open Sans',Calibri, Arial, sans-serif;; font-size:15px; color:#ffffff; text-align: center; line-height:50px; display:block; text-decoration:none;border-radius:100%; ">{{btn_text}}</a>
</td>
<td>&nbsp;</td>
Expand All @@ -37,7 +36,6 @@
&nbsp;
</p>
</td>

</tr>
{% endblock email_body %}

Expand Down
3 changes: 1 addition & 2 deletions web/server/templates/emails/password_reset_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td width="250" style="border-radius: 5px;" height="50" bgcolor="#5b92e5" style="text-align:center;">
<a href="{{reset_link}}" align="center"
<a href="{{reset_link}}" align="center"
style="font-family:'Open Sans',Calibri, Arial, sans-serif;; font-size:15px; color:#ffffff; text-align: center; line-height:50px; display:block; text-decoration:none;border-radius:100%; ">{{btn_text}}</a>
</td>
<td>&nbsp;</td>
Expand All @@ -36,6 +36,5 @@
&nbsp;
</p>
</td>

</tr>
{% endblock %}
Loading