Skip to content

performance improvement and update dependencies - #283

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:update-deps
Aug 4, 2026
Merged

performance improvement and update dependencies#283
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:update-deps

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

@gab-arrobo
gab-arrobo requested review from a team and Copilot August 4, 2026 00:41
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR finalizes the 1.8.3 release, updates several indirect Go dependencies, and simplifies MongoDB “PUT” behavior by using a single atomic UpdateOne call with upsert enabled (removing the prior read-then-write pattern).

Changes:

  • Promote the repository version from 1.8.3-dev to 1.8.3.
  • Update multiple indirect Go module dependencies (e.g., sonic/loader, mimetype, klauspost/compress, quic-go).
  • Optimize RestfulAPIPutOneWithContext by replacing the explicit existence check + insert/update with UpdateOne(..., upsert=true).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
VERSION Marks the release as 1.8.3 (drops -dev).
mongoapi/mongoapi.go Uses UpdateOne with upsert to reduce round-trips and make PUT atomic.
go.mod Bumps indirect dependency versions.
go.sum Updates checksums to match the module bumps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mongoapi/mongoapi.go
opts := options.UpdateOne().SetUpsert(true)
result, err := collection.UpdateOne(ctx, filter, bson.M{"$set": putData}, opts)
if err != nil {
return false, fmt.Errorf("RestfulAPIPutOne err: %+v", err)
@gab-arrobo
gab-arrobo merged commit 5218d4d into omec-project:main Aug 4, 2026
9 checks passed
@gab-arrobo
gab-arrobo deleted the update-deps branch August 4, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants