Skip to content

Conversation

@babyTsakhes
Copy link
Collaborator

  • Remove: OptUint, OptInt, OptFloat64, OptString, OptBool, OptTuple.
  • Remove: MakeOptUint, MakeOptInt, MakeOptFloat64, MakeOptString, MakeOptBool, MakeOptTuple.
  • Add: OptAny = option.Generic[interface{}] .
  • Add: MakeOptAny constructor.
  • Update: All option structs to use option.* types.
  • Fix: Test type inconsistencies.

Changed #492

@babyTsakhes
Copy link
Collaborator Author

Later, I'll add the Tuple and Any type to the go-option library and make the code even more typesafe.

@babyTsakhes babyTsakhes marked this pull request as ready for review November 25, 2025 16:26
@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch 2 times, most recently from 499ecc6 to 21bd65d Compare December 1, 2025 18:36
@babyTsakhes
Copy link
Collaborator Author

The required changes have been added.

@oleg-jukovec
Copy link
Collaborator

The commit message should be something like:

iproto: add missing IPROTO feature flags to greeting negotiation

The welcome flags for the IPROTO_FEATURE_IS_SYNC functions have been added and
IPROTO_FEATURE_INSERT_ARROW for IPROTO_FEATURE_INSERT_ARROW protocol functions.
Changed it CHANGELOG.md in the previous version, it was in the wrong version.

Changed #466

->

doc: move entry about IPROTO to the right place

Follows #466

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch 3 times, most recently from f2c9c14 to 6ac2dcf Compare December 1, 2025 22:52
@oleg-jukovec
Copy link
Collaborator

Please, rebase on the master branch.

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch from 6ac2dcf to 161f48c Compare December 4, 2025 21:27
The welcome flags for the IPROTO_FEATURE_IS_SYNC functions have been added and
IPROTO_FEATURE_INSERT_ARROW for IPROTO_FEATURE_INSERT_ARROW protocol functions.
Changed it CHANGELOG.md in the previous version, it was in the wrong version.

Changed #466
@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch from 161f48c to 154d996 Compare December 4, 2025 21:31
Copy link
Collaborator

@oleg-jukovec oleg-jukovec left a comment

Choose a reason for hiding this comment

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

The first commit is useless at now.

(You've move the changelog entry in the first commit and move back it in the second one).

@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch from 154d996 to 7561615 Compare December 5, 2025 11:55
import (
"context"

"github.com/vmihailenco/msgpack/v5"
Copy link
Collaborator

Choose a reason for hiding this comment

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

pls remove this unnecessary change.

"github.com/stretchr/testify/require"
"github.com/tarantool/go-iproto"

"github.com/tarantool/go-option"
Copy link
Collaborator

Choose a reason for hiding this comment

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

pls move this go-option import to the previous section. I'd prefer if we'll use strict import structure:

import (
    <builtin packages>

    <third-party packages>

    <project packages>
)

go-option is third-party package in this classification (even if it's hosted in current org). We may adopt goimports style of sorting, but for now i'd suggest to use this one.

@oleg-jukovec

@babyTsakhes
Copy link
Collaborator Author

In general, I rebased to the master, after that the TestBox_Sugar_Schema_UserGrant_NoSu test crashed. I'm sorting it out now, it's not ready yet.

- Remove: OptUint, OptInt, OptFloat64, OptString, OptBool, OptTuple.
- Remove: MakeOptUint, MakeOptInt, MakeOptFloat64, MakeOptString, MakeOptBool, MakeOptTuple.
- Update: All option structs to use option.* types.
- Add type Any from go-option.
- Fix: Test type inconsistencies.

Closes #492
@babyTsakhes babyTsakhes force-pushed the babyTsakhes/gh-492-replace-usage-of-optional-types-in-crud-with-go-option branch from 7561615 to b941191 Compare December 5, 2025 14:04
@babyTsakhes
Copy link
Collaborator Author

Maybe it's the test itself. Correct me, but it only crashes in 4 tests. Everything works locally.

@babyTsakhes
Copy link
Collaborator Author

So the changes are ready, please take a look.

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.

4 participants