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

Update sea-orm requirement from 0.11 to 0.12 #34

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 31, 2023

Updates the requirements on sea-orm to permit the latest version.

Changelog

Sourced from sea-orm's changelog.

0.12.1 - 2023-07-27

  • 0.12.0-rc.1: Yanked
  • 0.12.0-rc.2: 2023-05-19
  • 0.12.0-rc.3: 2023-06-22
  • 0.12.0-rc.4: 2023-07-08
  • 0.12.0-rc.5: 2023-07-22

New Features

  • Added MigratorTrait::migration_table_name() method to configure the name of migration table SeaQL/sea-orm#1511
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
    // Override the name of migration table
    fn migration_table_name() -> sea_orm::DynIden {
        Alias::new("override_migration_table_name").into_iden()
    }
    ...
}
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "cake")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    pub name: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {
// By default, it's
// JOIN fruitONcake.id=fruit.cake_idANDfruit.name LIKE '%tropical%'
#[sea_orm(
has_many = "super::fruit::Entity",
on_condition = r#"super::fruit::Column::Name.like("%tropical%")"#
)]
TropicalFruit,
// Or specify condition_type = "any" to override it,
// JOIN fruitONcake.id=fruit.cake_idORfruit.name LIKE '%tropical%'
#[sea_orm(
has_many = "super::fruit::Entity",
on_condition = r#"super::fruit::Column::Name.like("%tropical%")"#
condition_type = "any",
)]
OrTropicalFruit,
}

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 31, 2023
@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #34 (ed7ab11) into main (de8fbc5) will decrease coverage by 0.96%.
Report is 1 commits behind head on main.
The diff coverage is 70.27%.

@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
- Coverage   60.35%   59.40%   -0.96%     
==========================================
  Files          22       20       -2     
  Lines        1072     1074       +2     
==========================================
- Hits          647      638       -9     
- Misses        425      436      +11     
Files Changed Coverage Δ
nakago/src/inject/error.rs 76.19% <0.00%> (-8.03%) ⬇️
nakago_axum/src/routes.rs 0.00% <0.00%> (ø)
nakago/src/inject/container.rs 73.75% <55.55%> (-8.69%) ⬇️
nakago/src/inject/tag.rs 91.48% <100.00%> (-0.05%) ⬇️
nakago/src/inject/type_id.rs 95.97% <100.00%> (-0.08%) ⬇️

... and 3 files with indirect coverage changes

Updates the requirements on [sea-orm](https://github.com/SeaQL/sea-orm) to permit the latest version.
- [Release notes](https://github.com/SeaQL/sea-orm/releases)
- [Changelog](https://github.com/SeaQL/sea-orm/blob/master/CHANGELOG.md)
- [Commits](SeaQL/sea-orm@0.11.0...0.12.1)

---
updated-dependencies:
- dependency-name: sea-orm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/sea-orm-0.12 branch from ecb53e5 to ed7ab11 Compare July 31, 2023 23:46
@bkonkle
Copy link
Owner

bkonkle commented Aug 1, 2023

There is currently an integration test failure that reveals a true incompatibility with sea_orm 0.12. The method to get User by username always returns None now. The issue will need some debugging before I can upgrade.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 14, 2023

Looks like sea-orm is no longer updatable, so this is no longer needed.

@dependabot dependabot bot closed this Aug 14, 2023
@dependabot dependabot bot deleted the dependabot/cargo/sea-orm-0.12 branch August 14, 2023 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant