Skip to content

Commit

Permalink
Merge pull request #327 from pixlise/development
Browse files Browse the repository at this point in the history
Release 4.36.0
  • Loading branch information
pnemere authored Oct 1, 2024
2 parents 9fca471 + 61f5490 commit eb3637e
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 86 deletions.
3 changes: 2 additions & 1 deletion api/ws/handlers/roi.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func HandleRegionOfInterestGetReq(req *protos.RegionOfInterestGetReq, hctx wsHel

dbItem.Owner = wsHelpers.MakeOwnerSummary(owner, hctx.SessUser, hctx.Svcs.MongoDB, hctx.Svcs.TimeStamper)

if req.IsMIST {
if req.IsMIST && dbItem.IsMIST {
// Fetch from MIST table and add to dbItem
mistItem := &protos.MistROIItem{}
err = hctx.Svcs.MongoDB.Collection(dbCollections.MistROIsName).FindOne(context.TODO(), bson.D{{Key: "_id", Value: req.Id}}).Decode(&mistItem)
Expand Down Expand Up @@ -238,6 +238,7 @@ func createROI(roi *protos.ROIItem, hctx wsHelpers.HandlerContext, needMistEntry
IdDepth: mistROIItem.IdDepth,
ClassificationTrail: mistROIItem.ClassificationTrail,
Formula: mistROIItem.Formula,
PmcConfidenceMap: mistROIItem.PmcConfidenceMap,
}
// Add an entry into the MIST ROI table
_, err := hctx.Svcs.MongoDB.Collection(dbCollections.MistROIsName).InsertOne(context.TODO(), mistROIItem)
Expand Down
2 changes: 1 addition & 1 deletion api/ws/wsHelpers/sync-mongo-restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type LogWriter struct {
}

func (w LogWriter) Write(p []byte) (n int, err error) {
w.logger.Infof(string(p))
w.logger.Infof("%s", string(p))
return len(p), nil
}

Expand Down
2 changes: 1 addition & 1 deletion data-formats
185 changes: 102 additions & 83 deletions generated-protos/roi.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb3637e

Please sign in to comment.