-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backend-refactor: (48 commits) add completer email as a description Fixed builds to use node_modules versions of dependencies such as angular-cli Changed favicon to use ReDBox branding Tweaks to runForDev to run compliation and installation tasks as node user Updated API docs to reflect newly added APIs Fixed TS compile issue. Added remaining API endpoints, added more tests. Removed file-based storage service. Added list datastreams Removed Nginx from dev docker-compose.yml as its not required. Referenced correct redbox-portal tag Updated postman tests. Added tests for new APIs Added Record Types and Forms API endpoints Added search related REST API calls Added transition workflow API endpoint. Added further User Management REST API Endpoints Added record delete record API endpoint. Added interactive flag for runForDev. Renamed SOLR jobs. Bumped MongoStorage version. Removed the requirement to pass an errorResponse object to apiFail. Useful for unexpected errors. Fixed typescript issues with respose models Added Create User API endpoint Added solr to developer docker-compose.yml as it's now required Added models to help standardise for API responses Updated Mocha test run to force exit after test run is complete Fixed: added missing SOLR fields. ... # Conflicts: # README.md # package-lock.json # package.json # test/postman/test-collection.json # typescript/api/controllers/DashboardController.ts # typescript/api/controllers/RecordController.ts # typescript/api/services/RecordsService.ts
- Loading branch information
Showing
72 changed files
with
6,479 additions
and
2,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,3 +173,4 @@ typescript/api/controllers/**/*.js | |
typescript/api/services/**/*.js | ||
assets/angular | ||
api/core/*.js | ||
dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM node:12.16.0 | ||
ENV node_env production | ||
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global | ||
ENV PATH=$PATH:/home/node/.npm-global/bin | ||
VOLUME ["/opt/redbox-portal/","/attachments","/publication","/opt/hooks"] | ||
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list | ||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ | ||
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ | ||
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \ | ||
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ | ||
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /opt/redbox-portal/ | ||
RUN echo "Australia/Brisbane" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata | ||
COPY --chown=node:node . /opt/redbox-portal/ | ||
USER node | ||
CMD NODE_ENV=$node_env node app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports.agendaQueue = { | ||
// options: { | ||
// see: https://github.com/agenda/agenda#configuring-an-agenda | ||
// } | ||
// e.g. : | ||
// jobs: [ | ||
// { | ||
// name: 'sampleJob', | ||
// fnName: 'agendaqueueservice.sampleFunctionToDemonstrateHowToDefineAJobFunction', | ||
// schedule: { | ||
// method: 'every', | ||
// intervalOrSchedule: '1 minute', | ||
// data: 'sample log string' | ||
// } | ||
// } | ||
// ] | ||
jobs: [ | ||
{ | ||
name: 'SolrSearchService-CreateOrUpdateIndex', | ||
fnName: 'solrsearchservice.solrAddOrUpdate' | ||
}, | ||
{ | ||
name: 'SolrSearchService-DeleteFromIndex', | ||
fnName: 'solrsearchservice.solrDelete' | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports.queue = { | ||
serviceName: 'agendaqueueservice' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports.search = { | ||
serviceName: 'solrsearchservice' | ||
}; |
Oops, something went wrong.