Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lib::db::{column_ordering, raw_def::v9} #1542

Merged
merged 13 commits into from
Aug 7, 2024
Merged

Conversation

kazimuth
Copy link
Contributor

Description of Changes

This is NOT an ABI or API break because we have enums now!!

I decided to split these out from the validation & migration code PR to make it easier to review.
I haven't added any code to work with these, just the definitions.

The new "test" features are going to be exercised in my next PR.

Expected complexity level and risk

a mild 1/5: this adds some new types that aren't used anywhere, which is perhaps slightly confusing.

Testing

CI should suffice.

@kazimuth kazimuth requested a review from gefjon July 24, 2024 21:16
@kazimuth kazimuth force-pushed the jgilles/new_module_def branch from e34c871 to 3e6a171 Compare July 24, 2024 21:18
@kazimuth kazimuth added the enhancement New feature or request label Jul 24, 2024
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

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

This looks good to me. Just one small nit.

@kazimuth kazimuth force-pushed the jgilles/new_module_def branch 3 times, most recently from 55cc541 to 63580e4 Compare July 26, 2024 19:43
@kazimuth kazimuth changed the base branch from jgilles/module_def_version_enum to master July 26, 2024 19:44
let column = column.as_ref();
self.columns()?
.iter()
.position(|x| x.name.as_ref().map(|s| &s[..]) == Some(column))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.position(|x| x.name.as_ref().map(|s| &s[..]) == Some(column))
.position(|x| x.name.as_ref().is_some_and(|s| s == column))

(might need some tweaking to get the types right...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out I should have been using .name() anyway :)

@bfops bfops added the release-any To be landed in any release window label Jul 29, 2024
kazimuth and others added 4 commits August 5, 2024 10:35
More comments

One more comment

Update crates/lib/src/db/column_ordering.rs

Co-authored-by: Phoebe Goldman <[email protected]>
Signed-off-by: james gilles <[email protected]>

Update crates/lib/src/db/raw_def/v9.rs

Co-authored-by: Tyler Cloutier <[email protected]>
Signed-off-by: james gilles <[email protected]>

Cargo fmt

Reword things
Co-authored-by: Mazdak Farrokhzad <[email protected]>
Signed-off-by: james gilles <[email protected]>
@kazimuth kazimuth force-pushed the jgilles/new_module_def branch from 1222c83 to 93d1f1e Compare August 5, 2024 17:35
@kazimuth kazimuth enabled auto-merge August 7, 2024 18:00
@kazimuth kazimuth disabled auto-merge August 7, 2024 18:07
@kazimuth kazimuth added this pull request to the merge queue Aug 7, 2024
Merged via the queue into master with commit 1b48555 Aug 7, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants