Skip to content

Commit 62f11cd

Browse files
cwerthomnigillandkrestjohnkimura-developerjimcheng256
authored
[RELEASE] 6.3.0-beta.8 (#268)
* feat: Upgrade mongoose to 6.x (#141) * feat: upgrading to mongoose 5.13.14 * updating code to support mongoose 5. * updating types for new mongoose types * fixing types for mongoose 5 types * updating options to new options type. removing unused imports. * Updating to use a document * adding type to template for the schema * Using ToObjectOptions * Removing mixin for mongoose * Casting things to other things * User.tojson returrns an any. Updating tests to remove useMongoClient * "fixing" some casting issues with a cast to any * Removing all references to useMongoClient * Changing the way the test creates a mongo connection * Removing next from pre-hooks * Reverting removal of next in pre hooks * done callback is not passed into validate anymore. Setters are now run by mongoose, so removing TODO's * fix: Getting device unit level tests working * fix: Removing next from init. Changing var's to let's and const's * fix: Updating tests for mongoose collections to use new method names * fix: Updating path to pbkdf2 for proxyquire * fix: Updating tests to call updateOne instead of update for mongoose collections. * fix: Reverting change to the findFeedsForService method back to what it was originally. * fix: Removing useMongoClient option * fix: Changing const to let for projection on getEvents * fix: state was missing the $, and so navigation to teams on the layer page was broken. * fix: Using an instance of mongoose connection instead of the mongoose instance. Also, disabled the test in passwordValidatorTest which uses proxypass. * fix: Changed aggregate query to an array. * feat: upgrading mongoose to 5.13.14 * feat: updating package-lock.json's for 5.13.14 of mongoose * fix: Removing extra '<' in title of Max Lockout Threshold * feat: Updating migration scripts to use new 5.13.14 mongoose API * fix: Enabling Should truncate password history test * fix: Updating User.getUserByAuthenticationId to use a callback instead of a promise. This was causing some strange error during testing. * feat: Removing authentication section and chaning major version to 6 for mage. * fix: Removing mongoose deprecation warning from README, since it was removed in version 5. * fix: Updating test to look more like a normal test * fix: Removing usused requires. Uncommenting out response text check. Removing console.log. * fix: Converting var's to const's. Adding use strict. * fix: Preparing to remove the use of mongoose models directly. * fix: Rremoving more instances of mongoose models * fix: Breaking out inline models to make their replacement more possible * fix: Removing lower level mongoose code * fix: Removing more lower level mongoose code * fix: Removing mongoose models * fix: Organizing imports * fix: Removing low level mongoose models * fix: Remove var's, updating imports, and removing low level mongoose models * fix: Removing var's, updating imports, and removing low level mongoose models. * fix: Removing event mongoose model * fix: Removing var's, updating imports, and removing low level mongoose models * fix: Removing low level mongoose calls with RoleModel * fix: Removing EventModel mongoose calls * fix: Removing EventModel mongoose calls * fix: Removing last instance of mongoose EventModel * fix: removing unused import * fix: Removing calls to low level mongoose models * feat: Adding tlsInsecurre flag to env to support certain self-signed certificates. * fix: Using auth configs top level functions and not the lower level mongoose ones * fix: RRemoving lower level mongoose calls * fix: Removing more instances of mongoose model calls. * fix: More reductions of mongoose low level calls * fix: Removing call to mongoose model, and using the exported funtion instead. * feat: Upgrading to mongoose 6.4.5. * feat: Removing types/mongodb in favor of mongodb for version 4.7.0. * fix: Callback was removed from db.collections, so changed to await * fix: Adding new to mongoose ObjectId's, and calling correct method in paging test. * fix: Updating to handle 6.1 change that added ownerDocument to top-level documents * fix: Removing references to mpromise * chore: Using findOneAndReplace instead of findAndModify * fix: Passing correct parameters to findOneAndReplace * fix: Getting an instance of Db from the MongoClient instead of the connection. * fix: Switching mongo poolSize to maxPoolSize and minPoolSize * fix: Using asPromise for mongoose.createConnection() * feat: mongodb-memory-server upgrade to version 8.8.0 so we get 4.7 version of mongodb driver. Upgrading mongodbMemoryServer to be 4.4.13 to match our installed version of mongo. * fix: Removing execPopulate since it was removed in mongoose 6. * fix: Removing setDefaultsOnInsert since it now defaults to true. * fix: Need to set array properly since arrays are treated as proxies in mongoose 6 * fix: Adding ACL to team. * fix: Setting setDefaultsOnInsert to false, which was the default in 5. * feat: Upgrade mongoose to 6.5.0 * fix: Setting setDefaultsOnInsert to false. Commenting out ensureIndexes for now, since the index already exists. * fix: Setting setDefaultsOnInsert to false to match what mongoose 5 had. * fix: Setting _id: false for sizePixels since it is now a subdocument. * fix: Removing query option of context: query, since it is always enabled in mongoose 6 * fix: Removing index modifications on _id, since it is no longer allowed. * fix: Using higher level api calls instead of low level mongoose calls. * fix: Removing check for parent and ownerDocument on transform methods * feat: Upgrade mongoose to 6.5.0 * fix: Removing types/mongodb and v5 of mongoose * fix: Removing types/mongodb * feat: upgrade to mongoose v5 * feat: upgrade to mongoose 6.5.0 * feat: upgrade to mongoose 6.5.0 * feat: upgrade to mongoose 6.5.0 * feat: Upgrade mongoose to 6.5.0 in image plugin * fix: Updating package-lock.json for image plugin. * feat: Upgrading to npm 8.5.0 * fix: Removed call to ensureIndexes in test since they were already created. * chore: Cleared out package-lock.json in service and recreated it. * fix: Setting return type on getClosestFeatures * chore: Recreating package-lock.json for image and nga-msi plugins. * fix: Removing toHexString call on a TS string, since it does not exist. * fix: Updating to use schema correctly * feat: upgrade image plugin to mongoose 5.13.14 * fix: Adding ensureIndexes back in, but surrounding with try/catch. * fix: Reverting schema changes. * fix: Using username instead of user for mongo * fix: Updating env tests for mongo username property change. * test: Adding logging to be removed related to mongo options. * chore: Regenerate package-lock.json for random plugin * test: Removing temp logging. * fix: Reverting to @types/mongoose and removing mongodb dependency. * fix: Re-adding nga-msi package-lock.json which was not meant to be removed. * fix: Adding generics to Object.freeze for feed tests. * fix: Missed generics on object.freeze. * feat: Removing types/mongodb dependency * fix: Reverting mongo property back to user from username. * test: Changing tests to use user and not username * fix: Re-adding username to mongo * fix: Switching mongo username/password to user/pass * fix: Reverting username/password for mongo * fix: Adding user/pass to top level mongo options object * test: Fixing test that checks for authMechanism in mongo properties * feat: Adding authMechanism and authSource to SCRAM config for mongo * doc: Adding TODO about SHA256, and comments on user/pass * fix: Changing tls back to ssl, since that was not meant to be checked in. * feat: tlsInsecure is now an env variable. * fix: Making boolean conversion match how mongoSsl operates. * feat: Using forked mongodb-migrations. * feat: Bumping mongodb-migrations to develop version. * fix: updating image and nga-msi plugin deps. * fix: Correcting dependency on mongodb-migrations * ci: Trying to get mongodb-migrations working. * ci: Trying https for mongodb-migrations * ci: trying shorthand git url * ci: accidentially deleted package-lock.json * ci: Trying http with mongodb-migrations * ci: going back to github urls for mongodb-migrations. This will fail, but I give up. * ci: Re-creation of package-lock.json for mongodb-migrations * fix: Removing references to cert buffers * fix: Handling PEM text files. * fix: Adding env var for mongo cred db name * refactor: Removing unused import * fix: Removing user and pass from top level object and need to re-test on aws mongo. * refactor: Moving tls options around * fix: Adding deprecation warnings for MAGE_MONGO_POOL_SIZE. * fix: adding logging about auth mechanism for mongodb. * fix: Adding log about connecting to an unauthenticated mongo * refactor: copying from dev, and changing some casts while adding TODOs * refactor: Adding TODO to remove cast to any * feat: Upgrading to mongo 4.2 from 3.6-jessie * fix: Updating supporting files for newer version of mongo. * fix: Correctly parsing subject on 4.2 docker image * chore: fixing merge issue with package-lock.json * ci: Using git+http for gillandk/mongodb-migrations * fix: Casting to any for BaseQuery in pageQuery * ci: updating for git+http for gillandk/mongodb-migrations * test: re-enabling tests in observations adapter * test: Adding more casts to any to fix building * fix: Adding emit to observations. Was removed by mistake. * ci: Turning off type checking of declaration files to get past the fluffy-spoon error for now. * fix: Cleanup from various merges and changes * docs: Updating changelog and readme for mongoose 6 upgrade. * [service] update node type definitions dependency * gitignore package.json for docker server build * remove release tag prefix in docker server build script * [ci] delete obsolete github workflow * [service] fix test that could randomly fail * feat: gars (#143) * feat: add dep of gars 0.1.1-beta.0 * chore: setting up a GARS leaflet that does not work with the current version of GARS, thus tests and build will break * chore: adding gars to the leaflet component * fix: getting grid lines to show up, but labels are messed up * fix: moving labels to the center of the grid * feat: bump to latest gars-js * fix: bump of gars-js version * fix: getting correct zoom level * feat: bump to 1.0.0 gars-js * chore: adding gars grid to the map layers * fix: setting gars grid to disabled by default * test: fixing LayersComponent test * feat: mgrs grid capability (#144) * feat: adding dependency on gars-js 2.0.0 * ci: fixing package-lock file * ci: removing direct dependency on grid-js * chore: initial cut at adding mgrs * fix: fixing clipping issue * feat: adding dep on mgrs-js version 1.0.0 * doc: adding GARS and MGRS overlay feature * docs: adding links in changelog to gars and mgrs repos * lint: fixing lint errors for gars and mgrs classes * fix: corrrectly setting opacity on gars and mgrs layers * fix: Event form reordering (#145) * feat: bump mongoose to 6.7 * test: fixing test related to mongoose upgrade * revert: debump mongoose back to 6.5 * fix: bump back to mongoose 6.7 and fix plugins * ci: removing peer dependency on mongoose * fix: handling archive form sorting * ci: updating package-lock to npm v8 for image plugin and mage service * fix: Single obs download (#146) * fix: correcting import of turfCentroid * ci: copying over views into lib directory for service * doc: Adding single obs download fix * fix: prevent auth disable (#147) * feat: preventing the user from disabling all authentications * feat: handle delete case for leaving an enabled authentication * feat: adding notification for auth delete status * doc: adding auth protection bug fix * lint: fixing most of the lint errors for admin-settings * lint: correcting lint errors in admin authentication * doc: fixing broken font awesome link * fix: web oauth fix (#148) * fix: Passing success flag to authentication.pug * fix: adding check for port on origin * doc: adding web oauth bug fix * fix: removing unused token parapeter to the done call * doc: putting bug fix in the correct location * fix: additional auth config fixes (#149) * ci: removing openid-client dependency. * feat: bump mongodb-memory-server to v8.10.1 * fix: regenerating package-lock file for image plugin * feat: bump passport-oauth2 to 1.6.1 * deps: bump mongoose 6.7.1 to 6.7.4 * fix: adding editorconfig, and using a lock for updating/deleting configs * fix: reading configs when an error occurs * docs: correcting punctuation. * fix: correcting issue modifying disabled auth configs * feat: Angular 10 support (#150) * refactor: using TestBed.inject over TestBed.get for type safety * deps: bump tslib from 1.10 to 2.4 in prep for angular 10 upgrade * deps: bump @mat-datetimepicker/core from 3 to 4 for angular 9 support * deps: bump mat-datetimepicker from 4 to 5 for angular 10 support * fix: making tsconfig.json valid json * refactor: partial upgrade to angular 10 * deps: bump mat-datetimepicker frrom 5.1.0 to 5.1.1 and angular/flex-layout from 9.0.0-beta.31 to 10.0.0-beta.32 * deps: bump mat-datetimepicker from 5.1.1 to 5.1.2 * deps: bump ngx-mat-select-search from 2.1.1 to 3.3.3 * deps: partial upgrade to angular 10 * deps: bump ngx-build-plus from 9.0.6 to 10.1.1 * deps: bump ngx-color 5.1.4 to 6.1.0 * ci: adding package-lock.json for image web-app * deps: bump typescript 3.5.3 to 4.5.5 * deps: de-bump typescript from 4.5.5 to 3.9.4 to support angular 9 * deps: de-dump typescript 3.9.4 to 3.8.3 * refactor: partial upgrade to angular 9 for image plugin * deps: bump zone.js from 0.10.2 to 0.12.0 * deps: de-bump zone.js to 0.10.3 * deps: fixing package-lock.json from de-bumped zone.js * refactor: partial upgrade to angular 10 for image plugin * test: angular/components#16209 seems to be fixed. * fix: replacing deprecated async with waitForAsync in tests. * deps: bumping karma and jasmine versions to latest * deps: bump of uirouter versions to support angular 10 * deps: bump uirouter to latest versions that support angular 10. bump version of jasmine and karma to latest versions. * deps: bump @types/jasmine from 3.3.8 to 4.3.0 * ci: bump to latest version of tslint. fixing lint config problems. * deps: bump tslint from 6.1.0 to 6.1.3 * deps: bump @ng-select/ng-select from 4.0.4 to 5.1.0 * Angular 11 support (#151) * deps: bump ng-select from 4.0.4 to 6.1.0 * dep: adding @angular-devkit/core 10.2.4 * feat: partial upgrade to angular 11 * ci: fixing package-lock.json * deps: adding dep on @angular-devkit/core 11.2.19 * feat: partial upgrade to angular 11 for image plugin * deps: bump @angular/flex-layout from 10.0.0-beta.32 to 11.0.0-beta.33. bump @mat-datetimepicker* from 5.1.2 to 6.0.3 * feat: partial upgrade to angular 11 * deps: bump ajsf to 0.8.0 * deps: downgrading ajsf to 0.5.1 * feat: Support for Angular 12 (#152) * ci: changing whitelistedNonPeerDependencies to allowedNonPeerDependencies * deps: removing dep on ngx-virtual-scroller * deps: upgrade of uirouter to angular 12 versions * feat: partial upgrade to angular 12 for web-app * deps: bump for supporting angular libraries needing material * deps: temp removing @mat-datetimepicker/moment dep for material upgrade * feat: upgrade of material angular 12 * dep: adding "@mat-datetimepicker/moment" back * ci: making corrections to get web-app building * deps: Projects for web-app and image plugin deps to Angular 12 (#153) * deps: bump jasmmine and karma to latest * deps: updating dependencies to angular 12 * deps: bump uirouter to angular 12 supported versions * feat: Image plugin support for angular 12 * deps: Update angular peer deps to 12 * deps: bump jasmine and karma to latest * deps: bump ngx-mat-select-search to 5.0.0 * feat: Support for Webpack 5.x (#154) * deps: dropping codelyzer * feat: Support for webpack 5 in web-app * docs: Adding webpack v5 feature * ci: adding development mode for angular * ci: adding production build to github actions for web-app * doocs: making features more concise. * docs: Capitalization fix * feat: Support for Angular 13 (#155) * feat: web-app support for Angular 13 * feat: image plugin support for Angular 13 * deps: bumping supporting versions to their angular 13 supported versions * deps: dropping @mat-datetimepicker/moment temp for angular material 13 upgrade * feat: web-app support for Angular Material 13 * deps: bump core-lib angular libs to 13.x * deps: bump mage-image angular libs to 13.x * ci: fixing package-lock.json in web-app * deps: adding js_cols as a dep and adding it to angular. mat-date-timepicker is broken css-wise * test: "fixing" parameters in spec * deps: bump html-loader to 4.2.0 * test: adding coverage dep * ci: fixing package-lock.json * fix: correcting html formatting * deps: dropping html-loader back to 0.5.5 * docs: adding angular 13 support * feat: Support for Angular 14 (#156) * feat: Support for Angular 14 in web-app * feat: support for Angular 14 in image plugin * deps: prep for upgrade to Angular MAterial 14 * feat: Support for Angular Material 14 * deps: bump projects core-lib and mage-image peer dependencies for angular to 14 * deps: bump supporting libs to their Angular 14 supported versions * deps: rxjs to 7.6 * docs: readme to specify node 14.15.x and adding support for angular 14 to changelog * test: Adding MatChipInput to MatChipInputEvent * test: fixing timing issues in admin-feed-edit tests * deps: bump @types/node to 18.11.13 * fix: fixes from the Angular 14 upgrade (#158) * fix: fixing event layer search * fix: Removing '~' in scss imporrt statements. * fix: prevent looping in teams paging * fix: preventing call to previous in users list when there are not prev * build: Adding allowedCommonJsDependencies to angular.json to remove build warnings * fix: Hnadle case where discard results are null * fix: Removed call in rxjs toPromise to lastValueFrom * ci: Cleaning dist dir in web-app * [web-app] wip: updating deps for node 16 build * [web-app] wip: build on node 16: use packaged md-date-time-picker dependency instead of nested source tree so npm does not pull outdated dev dependencies of md-date-time-picker which cause build errors on node 16 * [web-app] use published md-date-time-picker so npm does not pull its dev dependencies which break the build * [web-app] use md-date-time-picker from npm registry * [ci] use latest node to build web-app * bump package versions * [ci] publish to npm registry * [ci] publish npm packages with public access so publish command does not fail * [plugins] typo in readme * [service] cve: upgrade jsonwebtoken lib * [service] add todo comment to address * bump beta version * [service] fix old mongodb-migrations reference * [service] fix timestamp bug in test * [service] remove unnecessary string wrapping * [ci] remove node 14 and add 18 * [service] update geopackage version so mage runs in node 18+ * bump beta version * bump engine requirements for mage service; update plugins to use core version 6.2.x or 6.3 beta * [docker] fix typo in comment * [service] properly transform populated role in user transform * [web-app] update dms changes from merge for angular 14 * [plugins/image] bump service patch version from merged master version * About page display node version (#170) * Update target property from localhost to 127.0.0.1 * System section, node version on about page * about component node version included * back to localhost * About page mongodb version (#172) * mongodb version added to appLayer, repos * bit of refactor to make system info elements follow conventions * mongodbversion display on about page, add enviromentInfo * systemInfo tests, authApiAppender moved into /api endpoint * PR fixes * mongodbversion typo * typo * config.js versions * [service] add semantic version components to system info and test stub * WIP - tests,app.systemInfo,webController * version assertion change, string to obj * tests for app.impl.systemInfo, and adapters.systemInfo webcontroller * WIP - skip test append * DI refactor of CreateReadSystemInfo,test passing * remove .skip * two URL obj icon db test * system info tests, revert back icon test urls --------- Co-authored-by: Robert St. John <[email protected]> * [service] work around node issue nodejs/node#48886 that causes tests to fail using deep equals assertion on url objects (#176) * [service] fresh npm install and shrinkwrap * [service] remove dependency mongoose-beautiful-unique-validation because the name is too long (also it was causing a recursive stack overflow with mongoose 6.12) * [plugins/image] resolve typescript build errors due to type version mismatches with service * [plugins/nga-msi] package-lock update * [ci] trigger service build when plugins change * WIP - auth on systeminfo * system info entities updated * removed redundant entities code * remove unused imports * SystemInfoPermission included in allPermissions, formatting change * rolebased sysinfo now sysinfo permission service * only exclude the environment info if no permission * read system info in create-admin-role migration * update Pending on Develop in changlog * migration 030-add-read-system-info-permissions * fixed 003-create-admin migration * removed extra comma migration 003 migration file * test fix * [service] update better-sqlite3 dependency for node 20 compatibility (#179) * [service] updated/resolved shrinkwrap dependency versions * [plugins/nga-msi] sync package-lock to service; package-lock v3 * [plugins/image] update service package-lock to v3 and sync to mage.service * [plugins/arcgis] update service package-lock to v3 and sync to mage.service * [web-app] fix view child annotation on map search component * [service] add missing settings model typedefs * Conditional access to System Info (#192) * handleSearchFunction * WIP - auth /api * WIP * WIP - proxy config * remove artifact from stash pop * WIP - customAuth app.ts * Revert "WIP - customAuth app.ts" This reverts commit 3c850f3fbc5b68cc9738f962c0172a6e502da818. * working auth * Conditionally display system version info in About component * Include version data in SystemInfo API response regardless of user authentication * Refactor SystemInfo response to handle ExoSystemInfo types" * add auth strategy * fix mongodb typo, config param removal for CreateReadSystemInfo test. * api version with dependency injection * Add mockApiVersion to system info tests * remove comment * [service] fix types and tests after merge from master * [plugins/image] fix types after merge from master * [plugins/image] attempt to fix sharp install problem related to npm/cli#4828 * Bugfix: /api initial flag regression (#201) * bugfix: replace missing initial parameter on /api endpoint to support initial user setup This temporarily fixes a regression on the develop branch from the TS migration that blocked first-run initial admin setup. Robert is planning to replace how this will work with a secret-based approach rather than racing to create an admin user on the first run when zero users exist. * fix: update test schema to reflect the initial property being added back. * [web-app] package-lock * Angular 14 web plugins (#208) * [web-app] remove deprecated/eol protractor elements * [web-app] initial components for angular cli integration for building mage plugins * [web-app] restructure moving cli integration under core-lib * Revert "[web-app] restructure moving cli integration under core-lib" This reverts commit ccc2d78. * [web-app] package-lock update * [web-app] add prototype builder to devkit * [web-app] manage devkit dependencies from root workspace file * [web-app] fix example project references in devkit builder * [web-app] devkit back under core-lib to make dependency management easier * [web-app] move devkit code up to core-lib top level * [web-app] add devkit dependencies to core-lib * [web-app] add notes on dependencies to core-lib readme * [web-app] move core-lib builder and schematics under single parent to make typescript build easier * [web-app] move angular cli descriptors to common root * [web-app] fix angular-cli tsconfig * [web-app] add build scripts for core-lib angular cli * [web-app] change pack scripts to run from root directory * [web-app] fix angular-cli entries in core-lib package.json * [web-app] mod core-lib build script to copy resources * [web-app] fix paths and typos in core-lib angular cli descriptors and generated code * [web-app] remove references to deprecated angular apis for loading plugin modules * [web-app] add module import for plugin hooks to core-lib schematic * [web-app] package-lock * [web-app] plugin-library schematic adds a peer dependency on the host mage web app, and clears other dependencies, so the dist package dependencies are correct * [web-app] plugin builder sets main package entry to amd bundle * readme updates for web plugins * [web-app] fix plugin service test compile error * add explicit docs on installing plugin packages * [web-app] add readme on web plugin angular cli tools * [plugins/nga-msi] npm i for new package-lock and hopefully fix ci build error * [plugins/nga-msi] try again to fix fsevents dependency * [service] upgrade mocha to version 8 * [plugins/nga-msi] sync tsconfig lib and target entries to es2016 * [plugins/nga-msi] install missing types deps * [ci] use linked local mage.service to build service plugins * [ci] wip: test linking service to plugin build * [plugins/nga-msi] wip: test linking service to plugin build * [ci] remove debug commands so build does not fail * [service] upgrade mocha to 10 * arcgis plugin angular 14 (#209) * [plugins/arcgis] web angular 14: allow dep for core-lib version 6.3 beta * [plugins/arcgis] web angular 14: begin update to angular 10 - `npx @angular/cli@10 update @angular/core@10 @angular/cli@10 --force` * [plugins/arcgis] web angular 14: update to material 10 - `npx @angular/cli@10 update @angular/material@10 --force` * [plugins/arcgis] web angular 14: per angular upgrade guide, `number` input elements should now listen to `input` events instead of `change` * [plugins/arcgis] web angular 14: update to angular 11 - `ng update @angular/core@11 @angular/cli@11 --force` * [plugins/arcgis] web angular 14: update to angular 11 - force install to update package-lock - `npm 1 --force` * [plugins/arcgis] web angular 14: update to angular material 11 - ng update @angular/material@11 --force * [plugins/arcgis] web angular 14: force install to update package-lock with angular material 11 and core-lib 6.3 - npm i --force * [plugins/arcgis] web angular 14: update to angular 12 - `ng update @angular/core@12 @angular/cli@12 --force` * [plugins/arcgis] web angular 14: update to angular material 12 - `ng update @angular/material@12 --force` * [plugins/arcgis] web angular 14: update to angular 13 - `ng update @angular/core@13 @angular/cli@13` * [plugins/arcgis] web angular 14: update to angular material 13 - `ng update @angular/material@13 --force` * [plugins/arcgis] web angular 14: update to angular 14 - `ng update @angular/core@14 @angular/cli@14 --force` * [plugins/arcgis] web angular 14: update to angular material 14 - `ng update @angular/material@14 --force` * [plugins/arcgis] web angular 14: remove unused ng-select dependency * [plugins/arcgis] web angular 14: remove unused codelyzer dependency and upgrade jasmine * [plugins/arcgis] web angular 14: set builder to mage amd builder * [web-app] remove @types/geojson from dependencies block - already in devDependencies * [web-app] share ng-select package to web plugins * [web-app] fix type error in core-lib paging * [web-app] move some libraries necessary for core-lib angular cli from peerDependencies to dependencies to ensure npm always installs them * bump core versions to 6.3.0-beta.4 * [web-app] add ng-select to plugin service shared libraries test * [plugins/arcgis] move core-lib dependency to dependencies block and bump explicit rxjs dep version temporarily until upgrade to angular 16 * [web-app] package-lock with @types/geojson in dependencies block * [plugins/arcgis] update lib names in web-app tsconfig * Plugin actions (#210) * [ci] remove obsolete workflows * [ci] remove unused pre-latest node versions list; enforce ordering on the list; create an explicit LTS version to use for packaging * [ci] wip: separate plugin builds * [service] upgrade better-sqlite3 dep to build with node 22 * [ci] fix triggering repo paths in workflows * [ci] fix typos in workflow files * [ci] add arcgis service plugin workflow * [plugins/image] exclude spec dir with large test images from package * bump core beta version to 6.3.0-beta.5 * [ci] remove plugin publishing from core release workflow * [ci] fix artifact name typos [skip ci] * [plugins/arcgis] update mage.service dep in package-lock * [service] brand new shrinkwrap to attempt to correct os-specific fsevents dep erroneous installation in plugin projects; upgrade typescript to 4.9 to accommodate @types/lodash upgrade * bump core packages versions to 6.3.0-beta.6 * [plugins/arcgis] move @types/geojson dep to dev dependencies * [plugins/arcgis] manually add optional and dev flags to fsevents dep in package-lock to work around npm issue npm/cli#7622 * [service] minor shrinkwrap update on qs dep * [plugins/arcgis] add a test file to get the ball rolling and make ci pass running the test command * [plugins/arcgis] wip: plugin naming: rename service package * [plugins/arcgis] wip: plugin naming: move web artifacts to consistent project structure * [plugins/arcgis] wip: plugin naming: fix references to old project structure names * [plugins/arcgis] remove unused index file in web-app * [plugins/arcgis] add test config to web-app * [plugins/arcgis] add actions ci workflow for web-app * [plugins/arcgis] add a dummy test in web-app to pass build * [plugins/image] constrain mage core dep to 6.3.0-beta+ * [plugins/image] manually add dev and optional flags to fsevents in service package-lock so build does not fail on non-darwin platforms * [ci] add image service plugin release workflow * [plugins/image] update typescript and mongoose deps to match core mage * [ci] rename image plugin release workflow * [ci] rename arcgis web-app artifacts for consistency * [ci] remove obsolete env var * [ci] add arcgis plugin release workflow * [ci] add nga-msi plugin release workflow * [instance] fix references to renamed arcgis packages * [ci] use node lts version for main release workflow * [ci] fix missing lts node version output from config workflow * add mongodb and nodejs desired version (#211) * add mongodb and nodejs desired version * update nodejs min version to 18.x * initialize event search with empty string (#212) * docs: add readme sections for gotchas running plugins locally [skip ci] * Correct arcgis.web-app dependency path and README typos (#213) * Correct arcgis.web-app dependency path and README typos * Fix argis plugin configuration * Fix path mage.arcgis > mage.arcgis.service & mage.arc-web > mage.arcgis.web-app --------- Co-authored-by: Rick Saccoccia <[email protected]> * Web split (#214) * Update webapp path * Update webapp path creation * Redesign authentication error UI/UX * Swagger module * Fix null check on api * Fix null check settings * Refactor authentication dialog error UI/UX * Update README.md Update web application dist location * Plugin hooks for public and protected web routes (#215) * arcgis username and password authentication (#216) * arcgis username and password authentication * onAddLayerUrl includes layerToken --------- Co-authored-by: Rick Saccoccia <[email protected]> * Add OAuth to ArcGIS service plugin (#218) * Add support for user OAuth (#219) * 1226 create showcase app (#217) * Authentication types abstraction (#220) Co-authored-by: Rick Saccoccia <[email protected]> * Initial web auth (#221) * Parse feature service after validation * use fromToken() for oauth * Fix observation delete * Clean up prefences UI/UX * Add ArcGISIdentityManagerFactory (#222) * Add ArcGISIdentityManagerFactory * remove log with sensitive info --------- Co-authored-by: Rick Saccoccia <[email protected]> * moved auth settings to its own security tab (#224) * updated showcase to reflect recent changes (#226) Co-authored-by: Katherine Brown <[email protected]> * Arc admin attribute form (#227) * updated arc admin attributes html and added a reactive form for the data * binding fixes * updated tests * moved form def to constructor, populated form with config, on cancel form re-populates with config * replaced the frozen default config with a hardcoded mock in showcase --------- Co-authored-by: Katherine Brown <[email protected]> Co-authored-by: Katherine Brown <[email protected]> * [web] clean up ingress UI/UX * [web] clean up disclaimer UI/UX * Update OAuth flow for ArcGIS Plugin (#225) * initial commit * updates from pr comments * fix missing statements * move sanitize to web routes * Arc event material updates (#229) * updated the event layout * added layers to mock, display layers in events on one line seperated by commas * added open in new and edit icons, adjusted scss --------- Co-authored-by: Katherine Brown <[email protected]> * adds material UI facelift to the processing section of the arcGIS plugin admin component * Convert httpClient calls to @esri/arcgis-rest-request (#228) * Convert httpClient calls to @esri/arcgis-rest-request with ArcGISIdentityManager for authentication * Fix addFields and deleteFields * Fixed outFields and returnGeometry for query generation * [service] prepend form name to all event form fields for clarity and to avoid ESRI column name conflicts * [service] Fix check to determine if an observation sync to ESRI is a create or update * [service] OAuth refresh token flow in work * [service] Add IdentityManager to ObservationSender construction * [service] Remove httpClient * [service] fix FeatureQuerier response from request * [service] Refactor ArcGISIdentityManager management * draft changes * [service] ArcGIS field names are lowercase, account for this when adding/removing fields * Undo revert of FeatureQuerier * [service] Remove HttpClient.ts, no longer used * [service] updateConfig inner async methods await before we query * [server] Attribute sync fix upon adding feature server * [web/service] API update to include feature service authentication status * [service] fix regression in token, username/password validation req parameter parsing * [service] Clean up TODO comments * [service] form field mapping need to account for form name and field name to avoid conflicts * Reduce response logging that may cause confusion * [service] include event forms in detecting config changes * Merge develop --------- Co-authored-by: Rick Saccoccia <[email protected]> Co-authored-by: William Newman <[email protected]> Co-authored-by: Ryan Slatten <[email protected]> * added more explicit plugin directions (#232) * added more explicit plugin directions * moved changes to new arcgis README file --------- Co-authored-by: Katherine Brown <[email protected]> * update the instance dependency install instructions * fix config change issue * Fix cancel button * fix onSubmit save * fix for mongodb 5.0.1 compatibility * update read me to reflect mongo db support * update read me * initial commit * wip * this works * this works still * add arc and image plugin * revert server docker file and package.json changes * update readme * rearrange readme stuff * remove comments and add to docker ignore * update dockerignore * initial commit * run on feature * fix spelling * confirm vars * end my if statement * confirm vars * fix step name * confirm tag * test docker push * check docker build * check context * remove echo * add line to run * modify dockerignore * fix docker build * try deployment * rename files * update gitignore * initial fixes * pr comment fix * update github action version * fix more action stuff * Revert "fix more action stuff" This reverts commit 5b13a32. * Revert "update github action version" This reverts commit 409afda. * Update Github Actions (#246) Fix issues to the Github Actions tests so that they can be used for pr testing. * Fix observation sync issues (#236) * Convert httpClient calls to @esri/arcgis-rest-request with ArcGISIdentityManager for authentication * Fix addFields and deleteFields * Fixed outFields and returnGeometry for query generation * [service] prepend form name to all event form fields for clarity and to avoid ESRI column name conflicts * [service] Fix check to determine if an observation sync to ESRI is a create or update * [service] OAuth refresh token flow in work * [service] Add IdentityManager to ObservationSender construction * [service] Remove httpClient * [service] fix FeatureQuerier response from request * [service] Refactor ArcGISIdentityManager management * draft changes * [service] ArcGIS field names are lowercase, account for this when adding/removing fields * Undo revert of FeatureQuerier * [service] Remove HttpClient.ts, no longer used * [service] updateConfig inner async methods await before we query * [server] Attribute sync fix upon adding feature server * [web/service] API update to include feature service authentication status * [service] fix regression in token, username/password validation req parameter parsing * [service] Clean up TODO comments * [service] form field mapping need to account for form name and field name to avoid conflicts * Reduce response logging that may cause confusion * [service] include event forms in detecting config changes * Merge develop * [service] sync configured events instead of checking changes of all events. Store event ids instead of names * [server] Fix query syntax error * fix failing errors for observations * [service] fix event deletion and firstRun logic * fix issues with updates * fix deletion issue * fix required field issue * update arcgis read me --------- Co-authored-by: Rick Saccoccia <[email protected]> Co-authored-by: William Newman <[email protected]> Co-authored-by: Clinton Werth <[email protected]> * fix image service container build * wip * update image build * fix beta version * initial sftp workflows into main branch * Fix Save functionality for the Security settings on Admin page * Update package dependencies for mage server (#250) * store * update package jsons * update lock file * update msi * update service json * test update * test revert * reset * fix arcgis error * test * test * test revert * test * refresh shrinkwrap * update package files * update minor versions * update os support * fix errors with sqlite hope * revert --force change * remove sqlite3 * revert mage change * revert package * change * fix arcgis error * update package files to remove unneeded packages * update mage beta version * update package version to test * update core-lib * test * test again * revert test * remove whoami * update to beta 7 * test * test * revert change * Create Contact Us Section on Info Page (#253) * Create Contact Us Area on Information Page containing Email and Phone Number * Fix Budgeting Issue * Raise Budgets * more budgeting * SFTP plugin (#230) * SFTP plugin * update android and update plugin * add read me and update package.json files * initial actions for build test and release. dockerfile fix * fix build * remove mongoose * update package json for mage service * force npm ci * remove test to check build * remove test dependency * force npm ci * fix test * readd action tests * add test a dependency for package * basic jasmine config update * add generic test.ts file for web tests * disable web tests * update sftp plugin output to match other plugins --------- Co-authored-by: Clinton Werth <[email protected]> Co-authored-by: Ryan <[email protected]> * separate out package deployments to allow failures * 1396 - OAuth Spike (#252) * updated README for ArcGIS OAuth * using other readme instead * Fix sftp docker build (#255) * fix express dependency and docker build * remove extra lines from dockerfile * update package lock --------- Co-authored-by: Clinton Werth <[email protected]> * 1390 - SFTP Plugin Password Encryption (#258) * first attempt * working encryption * finished * removed unnecesary import * testing updating magerc * hard-coding version * salt not found fix * salt not found fix 2 * forgot about types version * Arcgis Features randomly not transferring properly (#257) * store * initial commit * fix event updates * update promises * init fix * Small changes * add comment * Add linting to Arcgis plugin - Service (#240) * Convert httpClient calls to @esri/arcgis-rest-request with ArcGISIdentityManager for authentication * Fix addFields and deleteFields * Fixed outFields and returnGeometry for query generation * [service] prepend form name to all event form fields for clarity and to avoid ESRI column name conflicts * [service] Fix check to determine if an observation sync to ESRI is a create or update * [service] OAuth refresh token flow in work * [service] Add IdentityManager to ObservationSender construction * [service] Remove httpClient * [service] fix FeatureQuerier response from request * [service] Refactor ArcGISIdentityManager management * draft changes * [service] ArcGIS field names are lowercase, account for this when adding/removing fields * Undo revert of FeatureQuerier * [service] Remove HttpClient.ts, no longer used * [service] updateConfig inner async methods await before we query * [server] Attribute sync fix upon adding feature server * [web/service] API update to include feature service authentication status * [service] fix regression in token, username/password validation req parameter parsing * [service] Clean up TODO comments * [service] form field mapping need to account for form name and field name to avoid conflicts * Reduce response logging that may cause confusion * [service] include event forms in detecting config changes * Merge develop * [service] sync configured events instead of checking changes of all events. Store event ids instead of names * [server] Fix query syntax error * fix failing errors for observations * [service] fix event deletion and firstRun logic * fix issues with updates * fix deletion issue * init * add lint to services * fix required field issue * update arcgis read me --------- Co-authored-by: Rick Saccoccia <[email protected]> Co-authored-by: William Newman <[email protected]> Co-authored-by: Clinton Werth <[email protected]> * ArcGIS duplicate features sent to the feature service (#259) * Fixes issue where deleted/archived observations were consistently 'deleted' from the feature layer. Other code clean up. * Updated github actions to build docker container on feature branches. Will still only deploy to dev/test on develop/test branch. --------- Co-authored-by: Clinton Werth <[email protected]> * Ensure enabled/disabled works after arc plugin is initialized (#260) * store * initial commit * fix event updates * update promises * init fix * Small changes * add comment * store * initial commit * update docker and aws build * fix processor error * fix config issue --------- Co-authored-by: Clinton Werth <[email protected]> * fix feature layer delete and error message after put (#256) Co-authored-by: Clinton Werth <[email protected]> * Release of 6.3.0-beta.8 for Server, Web and Core(#261) Co-authored-by: Clinton Werth <[email protected]> * Arc sftp beta release (#262) * Set beta release for SFTP and Arc plugins * fix arc web build --------- Co-authored-by: Clinton Werth <[email protected]> * fix sftp release yaml (#263) Co-authored-by: Clinton Werth <[email protected]> * Fix sftp release work flow (#264) * fix sftp release yaml * update package json files for proper package versions --------- Co-authored-by: Clinton Werth <[email protected]> * update docker files (#266) Co-authored-by: Clinton Werth <[email protected]> --------- Co-authored-by: Kevin Gilland <[email protected]> Co-authored-by: Robert St. John <[email protected]> Co-authored-by: kimura-developer <[email protected]> Co-authored-by: Jim Cheng <[email protected]> Co-authored-by: Mike Finnessy <[email protected]> Co-authored-by: Skosche3 <[email protected]> Co-authored-by: Rick Saccoccia <[email protected]> Co-authored-by: Billy Newman <[email protected]> Co-authored-by: William Newman <[email protected]> Co-authored-by: Ryan <[email protected]> Co-authored-by: Jordanafoster6 <[email protected]> Co-authored-by: kbrownomni <[email protected]> Co-authored-by: Katherine Brown <[email protected]> Co-authored-by: Katherine Brown <[email protected]> Co-authored-by: Jordan Foster <[email protected]> Co-authored-by: Ryan Slatten <[email protected]> Co-authored-by: Clinton Werth <[email protected]> Co-authored-by: Ryan Carpenter <[email protected]> Co-authored-by: Dan Benner <[email protected]> Co-authored-by: James McDougall <[email protected]>
1 parent 1747bae commit 62f11cd

File tree

1,377 files changed

+481278
-140369
lines changed

Some content is hidden

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

1,377 files changed

+481278
-140369
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/node_modules
2+
**/dist

.github/workflows/aws_dev.deploy.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: AWS Dev Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
workflow_dispatch:
8+
9+
permissions:
10+
id-token: write
11+
contents: read
12+
13+
jobs:
14+
build-and-push:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repo
18+
uses: actions/checkout@v4
19+
20+
- name: Set IMAGE_TAG
21+
run: |
22+
if [[ "${{ github.ref_name }}" == "test" ]]; then
23+
echo "IMAGE_TAG=test" >> $GITHUB_ENV
24+
else
25+
echo "IMAGE_TAG=dev" >> $GITHUB_ENV
26+
fi
27+
28+
- name: AWS config
29+
uses: aws-actions/configure-aws-credentials@v3
30+
with:
31+
role-to-assume: ${{ secrets.AWS_DEV_ROLE }}
32+
role-session-name: GithubNGAGeointSession
33+
aws-region: ${{ secrets.AWS_DEV_REGION }}
34+
35+
- name: AWS ECR Login
36+
id: ecr-login
37+
uses: aws-actions/amazon-ecr-login@v2
38+
39+
- name: Build Docker image
40+
env:
41+
REGISTRY: ${{ steps.ecr-login.outputs.registry }}
42+
REPOSITORY: "/mage/server"
43+
IMAGE_TAG: ${{ env.IMAGE_TAG }}
44+
run: |
45+
docker build -t $REGISTRY$REPOSITORY:$IMAGE_TAG .
46+
47+
- name: Push Image and ReDeploy ECS Service
48+
if: github.ref =='refs/heads/test' || github.ref =='refs/heads/develop'
49+
env:
50+
SERVICE: "mage${{ env.IMAGE_TAG }}"
51+
run: |
52+
docker push $REGISTRY$REPOSITORY:$IMAGE_TAG
53+
aws ecs update-service --cluster magedev --service $SERVICE --force-new-deployment

.github/workflows/buildAndTest.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: test and package arcgis service plugin
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
paths:
8+
- .github/workflows/build_test.arcgis.service.yaml
9+
- .github/workflows/config.yaml
10+
- plugins/arcgis/service/**
11+
12+
jobs:
13+
config:
14+
uses: ./.github/workflows/config.yaml
15+
16+
test:
17+
name: test plugin arcgis.service
18+
needs: [config]
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node: ${{ fromJSON(needs.config.outputs.node_versions-all-json) }}
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@v3
26+
- name: setup node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: npm
31+
cache-dependency-path: |
32+
plugins/arcgis/service/package-lock.json
33+
- name: build mage service
34+
run: |
35+
cd service
36+
npm ci
37+
npm run build
38+
- name: test with node ${{ matrix.node }}
39+
run: |
40+
cd plugins/arcgis/service
41+
npm ci --force
42+
npm test
43+
44+
package:
45+
name: package plugin arcgis.service
46+
needs: [config, test]
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: checkout
50+
uses: actions/checkout@v3
51+
- name: setup node
52+
uses: actions/setup-node@v3
53+
with:
54+
node-version: ${{ needs.config.outputs.node_versions-lts }}
55+
cache: npm
56+
cache-dependency-path: |
57+
plugins/arcgis/service/package-lock.json
58+
- name: build mage service
59+
run: |
60+
cd service
61+
npm ci
62+
npm run build
63+
- name: build service for plugin
64+
run: |
65+
cd plugins/arcgis/service
66+
npm ci --force
67+
npm run build
68+
- name: package for plugin
69+
run: npm pack ./plugins/arcgis/service
70+
- name: upload package
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: arcgis.service-artifacts
74+
path: |
75+
ngageoint-mage.*.tgz
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: test and package arcgis web plugin
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
paths:
8+
- .github/workflows/build_test.arcgis.web-app.yaml
9+
- .github/workflows/config.yaml
10+
- plugins/arcgis/web-app/**
11+
12+
jobs:
13+
config:
14+
uses: ./.github/workflows/config.yaml
15+
16+
build:
17+
name: build plugin mage.arcgis.web-app
18+
needs: config
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: checkout
22+
uses: actions/checkout@v3
23+
- name: setup node
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ needs.config.outputs.node_versions-lts }}
27+
cache: npm
28+
cache-dependency-path: plugins/arcgis/web-app/package-lock.json
29+
- name: build
30+
run: |
31+
cd plugins/arcgis/web-app
32+
npm ci
33+
npm run build
34+
env:
35+
NODE_OPTIONS: "--max_old_space_size=4096"
36+
- name: test
37+
run: |
38+
cd plugins/arcgis/web-app
39+
npm run test-headless
40+
- name: pack
41+
run: |
42+
npm pack ./plugins/arcgis/web-app/dist/main
43+
- name: upload packages
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: arcgis.web-app-artifacts
47+
path: |
48+
ngageoint-mage.arcgis.web-app-*.tgz
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: test and package image service plugin
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
paths:
8+
- .github/workflows/build_test.image.service.yaml
9+
- .github/workflows/config.yaml
10+
- plugins/image/service/**
11+
12+
jobs:
13+
config:
14+
uses: ./.github/workflows/config.yaml
15+
16+
test:
17+
name: test plugin image.service
18+
needs: [config]
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node: ${{ fromJSON(needs.config.outputs.node_versions-all-json) }}
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@v3
26+
- name: setup node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: npm
31+
cache-dependency-path: |
32+
plugins/image/service/package-lock.json
33+
- name: build mage service
34+
run: |
35+
cd service
36+
npm ci --force
37+
npm run build
38+
- name: test with node ${{ matrix.node }}
39+
run: |
40+
cd plugins/image/service
41+
npm ci --force
42+
npm install --os=linux --cpu=x64 sharp
43+
rm -rf node_modules/mongoose
44+
npm test
45+
46+
package:
47+
name: package plugin image.service
48+
needs: [config, test]
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: checkout
52+
uses: actions/checkout@v3
53+
- name: setup node
54+
uses: actions/setup-node@v3
55+
with:
56+
node-version: ${{ needs.config.outputs.node_versions-lts }}
57+
cache: npm
58+
cache-dependency-path: |
59+
plugins/image/service/package-lock.json
60+
- name: build mage service
61+
run: |
62+
cd service
63+
npm ci
64+
npm run build
65+
- name: build image service
66+
run: |
67+
cd plugins/image/service
68+
npm ci --force
69+
npm install --os=linux --cpu=x64 sharp
70+
rm -rf node_modules/mongoose
71+
npm run build
72+
- name: pack
73+
run: npm pack ./plugins/image/service
74+
- name: upload package
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: image.service-artifacts
78+
path: |
79+
ngageoint-mage.*.tgz
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: test and package nga-msi plugin
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
paths:
8+
- .github/workflows/build_test.nga-msi.yaml
9+
- .github/workflows/config.yaml
10+
- plugins/nga-msi/**
11+
12+
jobs:
13+
config:
14+
uses: ./.github/workflows/config.yaml
15+
16+
test:
17+
name: test plugin nga-msi
18+
needs: [config]
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node: ${{ fromJSON(needs.config.outputs.node_versions-all-json) }}
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@v3
26+
- name: setup node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node }}
30+
cache: npm
31+
cache-dependency-path: |
32+
plugins/nga-msi/package-lock.json
33+
- name: build mage service
34+
run: |
35+
cd service
36+
npm ci
37+
npm run build
38+
- name: test with node ${{ matrix.node }}
39+
run: |
40+
cd plugins/nga-msi
41+
npm ci --force
42+
npm test
43+
44+
package:
45+
name: package plugin nga-msi
46+
needs: [config, test]
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: checkout
50+
uses: actions/checkout@v3
51+
- name: setup node
52+
uses: actions/setup-node@v3
53+
with:
54+
node-version: ${{ needs.config.outputs.node_versions-lts }}
55+
cache: npm
56+
cache-dependency-path: |
57+
plugins/nga-msi/package-lock.json
58+
- name: build mage service
59+
run: |
60+
cd service
61+
npm ci
62+
npm run build
63+
- name: build
64+
run: |
65+
cd plugins/nga-msi
66+
npm ci --force
67+
npm run build
68+
- name: pack
69+
run: npm pack ./plugins/nga-msi
70+
- name: upload package
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: nga-msi-artifacts
74+
path: |
75+
ngageoint-mage.*.tgz

0 commit comments

Comments
 (0)