Skip to content

Commit

Permalink
MMGIS 3.0.0 (NASA-AMMOS#592)
Browse files Browse the repository at this point in the history
* Bump 2.11 (NASA-AMMOS#515)

* Docs - Time Tiles - Clarify tagging

* Fix css misaligned panel arrows due to browser update

* Bugfix: Send options to WMS layers (NASA-AMMOS#517)

* Bugfix: Send options to WMS layers

* remove console.log

* Bugfix: TimeUI zoom - use wheel instead of mousewheel event for ff

* Bugfix: Catch errors in api/shorten/expand

* NASA-AMMOS#519 fix mmgisAPI.setTime start (NASA-AMMOS#520)

* NASA-AMMOS#518 time={starttime} in a WMS URL is filled with endtime (NASA-AMMOS#522)

* ts-518 Inject time tile params better

* NASA-AMMOS#518 Stop wms layer options for override wms parameters

* Bugfix: LayersTool - Fix collapse all headers

* NASA-AMMOS#523 Chronice fix second loss (NASA-AMMOS#524)

* Info.go

* NASA-AMMOS#270 Fix nested header expansion - quickfix

* Fix Chronice overflow, update spice-kernel-conf-example and fix TimeUI startInPointMode

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware. (NASA-AMMOS#526)

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware.

* NASA-AMMOS#525 Make dynamicExtent requery controlled aware.

* NASA-AMMOS#527 Bugfix: Vector layers with headings/bearings do not toggle on/off based on zoom cutoffs (NASA-AMMOS#528)

* NASA-AMMOS#529 Viewshed set initial target and observer heights, also doc improvements (NASA-AMMOS#530)

* NASA-AMMOS#531 Viewshed in-app docs (NASA-AMMOS#532)

* NASA-AMMOS#531 partial

* NASA-AMMOS#531 Viewshed in-app docs

* gdal2customtiles.py remove downscale for dem tiles

* NASA-AMMOS#533 Allow adding relative seconds to initial times (NASA-AMMOS#534)

* NASA-AMMOS#533 Allow adding relative seconds to initial times

* NASA-AMMOS#533 Make sure not to overwrite config time value for initialend

* NASA-AMMOS#535 dynamicExtent vector layer and filtering issues (NASA-AMMOS#536)

* Spelling fixes

* NASA-AMMOS#452 Updated Identifier tool to be a separated floating tool

- Need to test different UI combinations with other separated tools
- We may possibly want an option to make the tool not be separated to
maintain compatibility

* Fixed Identifier tool bug when using old config with non-separated tool

Bug was causing other tools to not open. This makes it backwards
compatible.

* JS-API - setTime: add customtimes

* Fix docs typo

* Allow Identifier and Legend tools to be on different sides if specified

* Bug fix - MeasureTool without dem config variable set

* DrawTool - include Created and Modified time part in file info

* Fix no data dynamicExtent responses

* Remove minor debug field

* Added downloadURL variable to allow users to download raster layers NASA-AMMOS#546

* NASA-AMMOS#544 Fix setTime currentTime timezone, default layer time objects (NASA-AMMOS#548)

* NASA-AMMOS#539 MeasureTool - linear x-axis (NASA-AMMOS#554)

* Made downloadURL specific to tile and data layers, and updated docs NASA-AMMOS#546

* NASA-AMMOS#557 Viewer Panel - PDFs (NASA-AMMOS#558)

* NASA-AMMOS#557 Viewer Panel Pdfs - support with draw layers

* Fix issue with reloadLayer overwriting url

* Add CurtainTool

* Viewer Panel reads from all feature properties

* Improvements to bulk_tiles and added quantize_colormap NASA-AMMOS#561

- quantize_colormaps will produce quantized colormaps using standard MPL
palettes for a single tiff or directory of files
- New option to use continuous/discrete colors for bulk_tiles
- Other minor improvements to bulk_tiles

* Enabled scalefactor and improved text readout for Identifier tool

Resolves:
- Consistent text alignment in Identifier Tool readouts NASA-AMMOS#555
- Apply scale factor to Identifier Tool source data readouts NASA-AMMOS#556

* NASA-AMMOS#568 fix Deeplink to selected point or polygon (NASA-AMMOS#569)

* NASA-AMMOS#568 fix Deeplink to selected point or polygon

* NASA-AMMOS#568 Give useKeyAsId priority over latlng

* NASA-AMMOS#570 Info with dynamicExtent (NASA-AMMOS#571)

* NASA-AMMOS#572 mmgisAPI.getActiveTools (NASA-AMMOS#573)

* NASA-AMMOS#464 /configure-beta (NASA-AMMOS#574)

* NASA-AMMOS#464 Early COnfigure Remake

* NASA-AMMOS#464 Add styles to new configure

* NASA-AMMOS#464 New Configure 1

* NASA-AMMOS#464 Rework Configure 2

* NASA-AMMOS#464 New mission modals, general modals and snackbar

* NASA-AMMOS#464 Integrate new config page into MMGIS server, start of layers tab

* NASA-AMMOS#464 Start metaconfigs - home and ui

* NASA-AMMOS#464 Start Layers

* NASA-AMMOS#464 Map, Tile layer modal, settable config

* NASA-AMMOS#464 Change layer params, vector-conf, colorpickers, start tools tab

* NASA-AMMOS#464 Tools Tab

* NASA-AMMOS#464 Tool Modal partial

* NASA-AMMOS#464 Partial updates

* NASA-AMMOS#464 More Tool configs

* NASA-AMMOS#464 More work

* NASA-AMMOS#464 Vector layer components

* NASA-AMMOS#464 Preview Modal

* NASA-AMMOS#464 Layer Organization

* NASA-AMMOS#464 Pages and API Keys

* NASA-AMMOS#464 Early Geodatasets

* Merge dev into new config feature branch (NASA-AMMOS#541)

* Fix click on vectortile

* Fix missing Missions/mission path on tile layers

* NASA-AMMOS#465 Disable Globe more thoroughly when off (NASA-AMMOS#466)

* NASA-AMMOS#467 GENERATE_SOURCEMAP ENV (NASA-AMMOS#468)

* NASA-AMMOS#469 Fix Tool Drag Handle Remains on Screen (NASA-AMMOS#470)

* NASA-AMMOS#471 Additional Body Metadata for Draw Webhooks (NASA-AMMOS#472)

* NASA-AMMOS#471 Webhook fields 1

* NASA-AMMOS#471 Additional Body Metadata for Draw Webhooks

* NASA-AMMOS#471 Add raw_file_description

* NASA-AMMOS#474 ShadeTool - Fix Entity height calculation (NASA-AMMOS#475)

* NASA-AMMOS#474 ShadeTool- Fix Entity height calculation

* NASA-AMMOS#474 Remove comment of bad calculation line

* NASA-AMMOS#473 MeasureTool and IdentifierTool Layer Vars (NASA-AMMOS#476)

* NASA-AMMOS#473 Layer Specific IdentifierTool vars 1

* NASA-AMMOS#473 MeasureTool and IdentifierTool Layer Vars

* NASA-AMMOS#477 DrawTool - Filter state management (NASA-AMMOS#478)

* NASA-AMMOS#479 Remove restriction on Layer names (NASA-AMMOS#480)

* NASA-AMMOS#479 Remove Layer Name restrictions

* NASA-AMMOS#479 Remove console.log

* NASA-AMMOS#481 ShadeTool Touchups (NASA-AMMOS#482)

* NASA-AMMOS#481 ShadeTool Touchups

* NASA-AMMOS#481 Fix docs

* NASA-AMMOS#483 MeasureTool Fix nodata issue (NASA-AMMOS#484)

* Minor ShadeTool Fixes - hide point and regen at med res

* Check for empty time configs in TimeControl

* NASA-AMMOS#489 DrawTool - Move (NASA-AMMOS#490)

* NASA-AMMOS#489 Draggable DrawTool Features part 1

* NASA-AMMOS#489 DrawTool - Move 2

* NASA-AMMOS#494 Dropdown in the topbar for a selected feature’s properties links (NASA-AMMOS#495)

* NASA-AMMOS#485 Rover Image Overlay Improvements (NASA-AMMOS#486)

* NASA-AMMOS#485 Rover Image Overlay Improvments

* NASA-AMMOS#485 Prevent reload/updates to layers through the mmgisAPI if one is already taking place

* NASA-AMMOS#485 Support initialOpacity for imageOverlays w/ docs

* Remove dev consolelog

* NASA-AMMOS#485 Rover Improvement fixes

* NASA-AMMOS#485 Image overlay chache works (but is offset badly now)

* NASA-AMMOS#485 Fix image_overlay updateVectorLayer flickering

* NASA-AMMOS#485 Fix layerObj ref

* NASA-AMMOS#496 Support Symbols in DrawTool Folders and Tags (NASA-AMMOS#497)

* NASA-AMMOS#491 panorama angle of view wonky near poles (NASA-AMMOS#499)

* NASA-AMMOS#492 updateVectorLayer calls causes flat panorama view to revert to wrapped panorama view (NASA-AMMOS#501)

* Fix time replacement in IdentifierTool

* NASA-AMMOS#500 getFiles if deeplinked to draw tool (NASA-AMMOS#502)

* Update docker installation docs

* Fix typo in docs

* mmgisAPI.appendLineString returns false if layer was in a blocking state

* Touch up, move extraneous DrawTool destory

* If Globe Panel disabled, do not even run empty animate loop

* Bug: Deeplinked DrawTool layers are now immediately clickable

* Bug: Webhooks identify symbols in draw tags

* Minor bug fixes - missing deeplink layer error gone, search bar recenters and can force makelayer

* NASA-AMMOS#505 Dynamic Vector Layers (NASA-AMMOS#506)

* NASA-AMMOS#505 Dynamic Vector Layer querying 1

* NASA-AMMOS#505 Time queries, reselect improvement, download extent or full

* NASA-AMMOS#505 Dynamic vector layers

* NASA-AMMOS#504 ShadeTool Improvements and Multi-missionize (NASA-AMMOS#507)

* NASA-AMMOS#504 ShadeTool - User settable AzElRange

* NASA-AMMOS#504 SPICE kernel scheduled downloads

* NASA-AMMOS#504 update shadetool css

* NASA-AMMOS#504 Update docs for SPICE conf

* NASA-AMMOS#505 [Bug]: Support dynamicExtentMoveThresholf for non-geodatasets

* NASA-AMMOS#508 Upgrade Dockerfile to Node.JS v20+ (NASA-AMMOS#509)

* NASA-AMMOS#508 Upgrade to NodeJS v20.11.1

* NASA-AMMOS#508 Update Dockerfile 2, update nupmy

* Geodatasets to use spatial index, also DB_POOL envs

* NASA-AMMOS#510 Temporal Geodatasets (NASA-AMMOS#511)

* NASA-AMMOS#510 Temporal Geodatasets

* NASA-AMMOS#510 Fix new doc page path

* NASA-AMMOS#270 Fix nested header expansion (NASA-AMMOS#512)

* NASA-AMMOS#498 LayersTool - Prevent toggle of loading layer (NASA-AMMOS#513)

* Bump 2.11 (NASA-AMMOS#515)

* Docs - Time Tiles - Clarify tagging

* Fix css misaligned panel arrows due to browser update

* Bugfix: Send options to WMS layers (NASA-AMMOS#517)

* Bugfix: Send options to WMS layers

* remove console.log

* Bugfix: TimeUI zoom - use wheel instead of mousewheel event for ff

* Bugfix: Catch errors in api/shorten/expand

* NASA-AMMOS#519 fix mmgisAPI.setTime start (NASA-AMMOS#520)

* NASA-AMMOS#518 time={starttime} in a WMS URL is filled with endtime (NASA-AMMOS#522)

* ts-518 Inject time tile params better

* NASA-AMMOS#518 Stop wms layer options for override wms parameters

* Bugfix: LayersTool - Fix collapse all headers

* NASA-AMMOS#523 Chronice fix second loss (NASA-AMMOS#524)

* Info.go

* NASA-AMMOS#270 Fix nested header expansion - quickfix

* Fix Chronice overflow, update spice-kernel-conf-example and fix TimeUI startInPointMode

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware. (NASA-AMMOS#526)

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware.

* NASA-AMMOS#525 Make dynamicExtent requery controlled aware.

* NASA-AMMOS#527 Bugfix: Vector layers with headings/bearings do not toggle on/off based on zoom cutoffs (NASA-AMMOS#528)

* NASA-AMMOS#529 Viewshed set initial target and observer heights, also doc improvements (NASA-AMMOS#530)

* NASA-AMMOS#531 Viewshed in-app docs (NASA-AMMOS#532)

* NASA-AMMOS#531 partial

* NASA-AMMOS#531 Viewshed in-app docs

* gdal2customtiles.py remove downscale for dem tiles

* NASA-AMMOS#533 Allow adding relative seconds to initial times (NASA-AMMOS#534)

* NASA-AMMOS#533 Allow adding relative seconds to initial times

* NASA-AMMOS#533 Make sure not to overwrite config time value for initialend

* NASA-AMMOS#535 dynamicExtent vector layer and filtering issues (NASA-AMMOS#536)

* Spelling fixes

* NASA-AMMOS#452 Updated Identifier tool to be a separated floating tool

- Need to test different UI combinations with other separated tools
- We may possibly want an option to make the tool not be separated to
maintain compatibility

* Fixed Identifier tool bug when using old config with non-separated tool

Bug was causing other tools to not open. This makes it backwards
compatible.

* JS-API - setTime: add customtimes

* Fix docs typo

* Allow Identifier and Legend tools to be on different sides if specified

* Bug fix - MeasureTool without dem config variable set

* DrawTool - include Created and Modified time part in file info

* Fix no data dynamicExtent responses

* Remove minor debug field

---------

Co-authored-by: Joe Roberts <[email protected]>
Co-authored-by: Joe T. Roberts <[email protected]>

* NASA-AMMOS#464 More Geodataset page

* NASA-AMMOS#464 More Geodataset work

* NASA-AMMOS#464 Geodatasets page

* NASA-AMMOS#464 More new configuration site work

* NASA-AMMOS#464 More new config fixes

* NASA-AMMOS#464 Serve both configs, saving, websockets, early datasets

* NASA-AMMOS#464 Remove extra image

* NASA-AMMOS#464 Home page among many other things

* NASA-AMMOS#464 Configure-beta - Finish webhooks and dataset

* NASA-AMMOS#464 Touch ups

* Update Feature Branch NASA-AMMOS#464 (NASA-AMMOS#550)

* Fix click on vectortile

* Fix missing Missions/mission path on tile layers

* NASA-AMMOS#465 Disable Globe more thoroughly when off (NASA-AMMOS#466)

* NASA-AMMOS#467 GENERATE_SOURCEMAP ENV (NASA-AMMOS#468)

* NASA-AMMOS#469 Fix Tool Drag Handle Remains on Screen (NASA-AMMOS#470)

* NASA-AMMOS#471 Additional Body Metadata for Draw Webhooks (NASA-AMMOS#472)

* NASA-AMMOS#471 Webhook fields 1

* NASA-AMMOS#471 Additional Body Metadata for Draw Webhooks

* NASA-AMMOS#471 Add raw_file_description

* NASA-AMMOS#474 ShadeTool - Fix Entity height calculation (NASA-AMMOS#475)

* NASA-AMMOS#474 ShadeTool- Fix Entity height calculation

* NASA-AMMOS#474 Remove comment of bad calculation line

* NASA-AMMOS#473 MeasureTool and IdentifierTool Layer Vars (NASA-AMMOS#476)

* NASA-AMMOS#473 Layer Specific IdentifierTool vars 1

* NASA-AMMOS#473 MeasureTool and IdentifierTool Layer Vars

* NASA-AMMOS#477 DrawTool - Filter state management (NASA-AMMOS#478)

* NASA-AMMOS#479 Remove restriction on Layer names (NASA-AMMOS#480)

* NASA-AMMOS#479 Remove Layer Name restrictions

* NASA-AMMOS#479 Remove console.log

* NASA-AMMOS#481 ShadeTool Touchups (NASA-AMMOS#482)

* NASA-AMMOS#481 ShadeTool Touchups

* NASA-AMMOS#481 Fix docs

* NASA-AMMOS#483 MeasureTool Fix nodata issue (NASA-AMMOS#484)

* Minor ShadeTool Fixes - hide point and regen at med res

* Check for empty time configs in TimeControl

* NASA-AMMOS#489 DrawTool - Move (NASA-AMMOS#490)

* NASA-AMMOS#489 Draggable DrawTool Features part 1

* NASA-AMMOS#489 DrawTool - Move 2

* NASA-AMMOS#494 Dropdown in the topbar for a selected feature’s properties links (NASA-AMMOS#495)

* NASA-AMMOS#485 Rover Image Overlay Improvements (NASA-AMMOS#486)

* NASA-AMMOS#485 Rover Image Overlay Improvments

* NASA-AMMOS#485 Prevent reload/updates to layers through the mmgisAPI if one is already taking place

* NASA-AMMOS#485 Support initialOpacity for imageOverlays w/ docs

* Remove dev consolelog

* NASA-AMMOS#485 Rover Improvement fixes

* NASA-AMMOS#485 Image overlay chache works (but is offset badly now)

* NASA-AMMOS#485 Fix image_overlay updateVectorLayer flickering

* NASA-AMMOS#485 Fix layerObj ref

* NASA-AMMOS#496 Support Symbols in DrawTool Folders and Tags (NASA-AMMOS#497)

* NASA-AMMOS#491 panorama angle of view wonky near poles (NASA-AMMOS#499)

* NASA-AMMOS#492 updateVectorLayer calls causes flat panorama view to revert to wrapped panorama view (NASA-AMMOS#501)

* Fix time replacement in IdentifierTool

* NASA-AMMOS#500 getFiles if deeplinked to draw tool (NASA-AMMOS#502)

* Update docker installation docs

* Fix typo in docs

* mmgisAPI.appendLineString returns false if layer was in a blocking state

* Touch up, move extraneous DrawTool destory

* If Globe Panel disabled, do not even run empty animate loop

* Bug: Deeplinked DrawTool layers are now immediately clickable

* Bug: Webhooks identify symbols in draw tags

* Minor bug fixes - missing deeplink layer error gone, search bar recenters and can force makelayer

* NASA-AMMOS#505 Dynamic Vector Layers (NASA-AMMOS#506)

* NASA-AMMOS#505 Dynamic Vector Layer querying 1

* NASA-AMMOS#505 Time queries, reselect improvement, download extent or full

* NASA-AMMOS#505 Dynamic vector layers

* NASA-AMMOS#504 ShadeTool Improvements and Multi-missionize (NASA-AMMOS#507)

* NASA-AMMOS#504 ShadeTool - User settable AzElRange

* NASA-AMMOS#504 SPICE kernel scheduled downloads

* NASA-AMMOS#504 update shadetool css

* NASA-AMMOS#504 Update docs for SPICE conf

* NASA-AMMOS#505 [Bug]: Support dynamicExtentMoveThresholf for non-geodatasets

* NASA-AMMOS#508 Upgrade Dockerfile to Node.JS v20+ (NASA-AMMOS#509)

* NASA-AMMOS#508 Upgrade to NodeJS v20.11.1

* NASA-AMMOS#508 Update Dockerfile 2, update nupmy

* Geodatasets to use spatial index, also DB_POOL envs

* NASA-AMMOS#510 Temporal Geodatasets (NASA-AMMOS#511)

* NASA-AMMOS#510 Temporal Geodatasets

* NASA-AMMOS#510 Fix new doc page path

* NASA-AMMOS#270 Fix nested header expansion (NASA-AMMOS#512)

* NASA-AMMOS#498 LayersTool - Prevent toggle of loading layer (NASA-AMMOS#513)

* Bump 2.11 (NASA-AMMOS#515)

* Docs - Time Tiles - Clarify tagging

* Fix css misaligned panel arrows due to browser update

* Bugfix: Send options to WMS layers (NASA-AMMOS#517)

* Bugfix: Send options to WMS layers

* remove console.log

* Bugfix: TimeUI zoom - use wheel instead of mousewheel event for ff

* Bugfix: Catch errors in api/shorten/expand

* NASA-AMMOS#519 fix mmgisAPI.setTime start (NASA-AMMOS#520)

* NASA-AMMOS#518 time={starttime} in a WMS URL is filled with endtime (NASA-AMMOS#522)

* ts-518 Inject time tile params better

* NASA-AMMOS#518 Stop wms layer options for override wms parameters

* Bugfix: LayersTool - Fix collapse all headers

* NASA-AMMOS#523 Chronice fix second loss (NASA-AMMOS#524)

* Info.go

* NASA-AMMOS#270 Fix nested header expansion - quickfix

* Fix Chronice overflow, update spice-kernel-conf-example and fix TimeUI startInPointMode

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware. (NASA-AMMOS#526)

* NASA-AMMOS#525 Make dynamicExtent requery timeEnabled aware.

* NASA-AMMOS#525 Make dynamicExtent requery controlled aware.

* NASA-AMMOS#527 Bugfix: Vector layers with headings/bearings do not toggle on/off based on zoom cutoffs (NASA-AMMOS#528)

* NASA-AMMOS#529 Viewshed set initial target and observer heights, also doc improvements (NASA-AMMOS#530)

* NASA-AMMOS#531 Viewshed in-app docs (NASA-AMMOS#532)

* NASA-AMMOS#531 partial

* NASA-AMMOS#531 Viewshed in-app docs

* gdal2customtiles.py remove downscale for dem tiles

* NASA-AMMOS#533 Allow adding relative seconds to initial times (NASA-AMMOS#534)

* NASA-AMMOS#533 Allow adding relative seconds to initial times

* NASA-AMMOS#533 Make sure not to overwrite config time value for initialend

* NASA-AMMOS#535 dynamicExtent vector layer and filtering issues (NASA-AMMOS#536)

* Spelling fixes

* NASA-AMMOS#452 Updated Identifier tool to be a separated floating tool

- Need to test different UI combinations with other separated tools
- We may possibly want an option to make the tool not be separated to
maintain compatibility

* Fixed Identifier tool bug when using old config with non-separated tool

Bug was causing other tools to not open. This makes it backwards
compatible.

* JS-API - setTime: add customtimes

* Fix docs typo

* Allow Identifier and Legend tools to be on different sides if specified

* Bug fix - MeasureTool without dem config variable set

* DrawTool - include Created and Modified time part in file info

* Fix no data dynamicExtent responses

* Remove minor debug field

* NASA-AMMOS#544 Fix setTime currentTime timezone, default layer time objects (NASA-AMMOS#548)

---------

Co-authored-by: Joe Roberts <[email protected]>
Co-authored-by: Joe T. Roberts <[email protected]>

* NASA-AMMOS#464 Final touches

* NASA-AMMOS#464 Fix missing /

* NASA-AMMOS#464 Update installation docs

* NASA-AMMOS#464 Add downloadURL config var

* NASA-AMMOS#464 Add documentation for configure dev and explain a idTool field better

* NASA-AMMOS#464 Add IdTool scalefactor param to config-beta

* NASA-AMMOS#464 Add useNameAsKey to configure-beta

* NASA-AMMOS#464 Final touches, bump version

---------

Co-authored-by: Joe Roberts <[email protected]>
Co-authored-by: Joe T. Roberts <[email protected]>

* NASA-AMMOS#542 Add Unity tf (NASA-AMMOS#543)

* NASA-AMMOS#542 Add Unity tf

* NASA-AMMOS#542 Add Unity tf 2

* NASA-AMMOS#542 Add all ENVs to tf

* NASA-AMMOS#542 Update unity terraform

* NASA-AMMOS#576 Vector Layer shapeIcon (NASA-AMMOS#577)

* Update sds tf

* NASA-AMMOS#578 Next/Previous Feature (NASA-AMMOS#579)

* NASA-AMMOS#578 Next/Previous part 1 - working next previous on index, menu ui that does nothing

* Quick fix

* NASA-AMMOS#578 Some work on dropdown

* NASA-AMMOS#578 Current Extent, Pan to and touchups

* NASA-AMMOS#578 Arrow keys, first/last, bug fixes

* NASA-AMMOS#578 dynamicExtent and time - partial

* NASA-AMMOS#578 Small fixes, geom precision, ui tweaks

* NASA-AMMOS#578 Better dynamicExtent next-preving

* NASA-AMMOS#578 next/prev improvements

* NASA-AMMOS#578 Next/Prev final touchups

* Minor fix - Description Nav dropdown properties order

* Create OPEN-SOURCE-CONTRIBUTIONS.md (NASA-AMMOS#582)

* NASA-AMMOS#584 Doc Link to Slack Channel (NASA-AMMOS#585)

* Ts 584 (NASA-AMMOS#586)

* NASA-AMMOS#584 Doc Link to Slack Channel

* NASA-AMMOS#584 Add more links to slack channel

* Use ROOT_PATH for configure-beta paths

* Fix ROOT_PATH in configure-beta

* Remove setup log

* Use relative configure-beta calls

* NASA-AMMOS#587 COMPOSITE_TILE_DIR_STORE_MAX_AGE_MS and per layer refreshIntervals (NASA-AMMOS#588)

* NASA-AMMOS#587 COMPOSITE_TILE_DIR_STORE_MAX_AGE_MS and per layer refreshIntervals

* NASA-AMMOS#587 Raster and Vector Refresh Intervals

* NASA-AMMOS#587 Update more docs

* NASA-AMMOS#587 Update more docs 2

* configure-beta calls / logic

* NASA-AMMOS#583 Starting in Point Mode for Time doesn't work (NASA-AMMOS#589)

* 3.0.0 Changelog

---------

Co-authored-by: Joe Roberts <[email protected]>
Co-authored-by: Joe T. Roberts <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2024
1 parent 605694f commit 31714fe
Show file tree
Hide file tree
Showing 201 changed files with 53,260 additions and 1,819 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
*__pycache__

sessions
.terraform/
.terraform.lock.hcl

#tools
25 changes: 25 additions & 0 deletions API/Backend/Config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,31 @@ let setup = {
});
}
);

s.app.get(
s.ROOT_PATH + "/configure-beta",
s.ensureGroup(s.permissions.users),
s.ensureAdmin(true),
(req, res) => {
const user = process.env.AUTH === "csso" ? req.user : null;
res.render("../configure/build/index.pug", {
user: user,
AUTH: process.env.AUTH,
NODE_ENV: process.env.NODE_ENV,
PORT: process.env.PORT || "8888",
ENABLE_CONFIG_WEBSOCKETS: process.env.ENABLE_CONFIG_WEBSOCKETS,
ENABLE_CONFIG_OVERRIDE: process.env.ENABLE_CONFIG_OVERRIDE,
ROOT_PATH:
process.env.NODE_ENV === "development"
? ""
: process.env.ROOT_PATH || "",
WEBSOCKET_ROOT_PATH:
process.env.NODE_ENV === "development"
? ""
: process.env.WEBSOCKET_ROOT_PATH || "",
});
}
);
}

s.app.use(
Expand Down
8 changes: 6 additions & 2 deletions API/Backend/Config/uuids.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ const populateUUIDs = (config) => {

// Track of all of the previously defined UUIDs (i.e. ignore the UUIDs of the newly added layers)
Utils.traverseLayers(config.layers, (layer) => {
if (layer.uuid != null && !layer.proposed_uuid) {
if (
layer.uuid != null &&
typeof layer.uuid !== "number" &&
!layer.proposed_uuid
) {
definedUUIDs.push(layer.uuid);
}
});

Utils.traverseLayers(config.layers, (layer) => {
if (layer.uuid == null) {
if (layer.uuid == null || typeof layer.uuid === "number") {
layer.uuid = uuidv4();
newlyAddedUUIDs.push({
name: layer.name,
Expand Down
114 changes: 109 additions & 5 deletions API/Backend/Datasets/routes/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const inspect = require("util").inspect;

const { sequelize } = require("../../../connection");

const Utils = require("../../../utils.js");
const logger = require("../../../logger");
const datasets = require("../models/datasets");
const csvtojson = require("csvtojson");
Expand Down Expand Up @@ -83,15 +84,68 @@ function get(req, res, next) {
router.post("/entries", function (req, res, next) {
Datasets.findAll()
.then((sets) => {
if (sets && sets.length > 0) {
if (sets) {
let entries = [];
for (let i = 0; i < sets.length; i++) {
entries.push({ name: sets[i].name, updated: sets[i].updatedAt });
}
res.send({
status: "success",
body: { entries: entries },
});
// For each entry, list all occurrences in latest configuration objects
sequelize
.query(
`
SELECT t1.*
FROM configs AS t1
INNER JOIN (
SELECT mission, MAX(version) AS max_version
FROM configs
GROUP BY mission
) AS t2
ON t1.mission = t2.mission AND t1.version = t2.max_version ORDER BY mission ASC;
`
)
.then(([results]) => {
// Populate occurrences
results.forEach((m) => {
Utils.traverseLayers(m.config.layers, (layer, path) => {
entries.forEach((entry) => {
entry.occurrences = entry.occurrences || {};
entry.occurrences[m.mission] =
entry.occurrences[m.mission] || [];
if (layer?.variables?.datasetLinks?.length != null) {
layer.variables.datasetLinks.forEach((d) => {
if (d.dataset === entry.name) {
entry.occurrences[m.mission].push({
name: layer.name,
uuid: layer.uuid,
path: path,
});
}
});
}
});
});
});

res.send({
status: "success",
body: { entries: entries },
});
return null;
})
.catch((err) => {
logger(
"error",
"Failed to find missions.",
req.originalUrl,
req,
err
);
res.send({
status: "failure",
message: "Failed to find missions.",
});
return null;
});
} else {
res.send({
status: "failure",
Expand Down Expand Up @@ -175,6 +229,56 @@ router.post("/search", function (req, res, next) {
});
});

/*
* req.query.layer
*/
router.get("/download", function (req, res, next) {
//First Find the table name
Datasets.findOne({ where: { name: req.query.layer } })
.then((result) => {
if (result) {
let table = result.dataValues.table;

sequelize
.query("SELECT * FROM " + table)
.then(([results]) => {
res.send({
status: "success",
body: results,
});

return null;
})
.catch((err) => {
logger(
"error",
"SQL error downloading dataset.",
req.originalUrl,
req,
err
);
res.send({
status: "failure",
message: "SQL error.",
});
});
} else {
res.send({
status: "failure",
message: "Layer not found.",
});
}

return null;
})
.catch((err) => {
logger("error", "Failure finding dataset.", req.originalUrl, req, err);
res.send({
status: "failure",
});
});
});

router.post("/upload", function (req, res, next) {
// Disable timeout
req.setTimeout(0);
Expand Down
Loading

0 comments on commit 31714fe

Please sign in to comment.