tagbase / tagbase-server

tagbase-server is a data management web service for working with eTUFF and nc-eTAG files.
https://oiip.jpl.nasa.gov/doc/OIIP_Deliverable7.4_TagbasePostgreSQLeTUFF_UserGuide.pdf
Apache License 2.0
7 stars 2 forks source link

Revert "Compute submission_id, tag_id sequences " #207

Closed lewismc closed 1 year ago

lewismc commented 1 year ago

Reverts tagbase/tagbase-server#204

@renato2099 I ingested two files which created tag_id's and submission_id's for 1 and 2 respectively below. I then performed docker-compose down and then docker-compose up to restart all services. I then ingested data file 159903_2012_117464_eTUFF.txt. This generated a tag_id and submission_id of 34! This needs further testing... we can simply delay until 0.10.0 release.

When executing a GET on /tags I am getting the following response

{
  "count": 3,
  "tags": [
    {
      "filename": "/usr/src/app/data/eTUFF-sailfish-117259.txt",
      "tag_id": 1
    },
    {
      "filename": "/usr/src/app/data/159924_2013_128419_eTUFF_hdr.txt",
      "tag_id": 2
    },
    {
      "filename": "/usr/src/app/data/159903_2012_117464_eTUFF.txt",
      "tag_id": 34
    }
  ]
}

The submission_id and tag_id for the third entry should be 3 not 34!

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information