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 labels support to lianad #605

Merged
merged 3 commits into from
Aug 28, 2023
Merged

Conversation

edouardparis
Copy link
Member

No description provided.

@edouardparis edouardparis changed the title wip: add labels to lianad Add labels support to lianad Aug 11, 2023
@edouardparis edouardparis force-pushed the labels-mvp branch 5 times, most recently from 88b61ef to f3b30e3 Compare August 17, 2023 13:49
@edouardparis edouardparis force-pushed the labels-mvp branch 4 times, most recently from a7d0378 to b622203 Compare August 21, 2023 07:43
@edouardparis edouardparis mentioned this pull request Aug 21, 2023
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

A few comments. I like the KISS approach you took. I implemented a functional test here, although there isn't much state consistency to be testing, feel free to cherry-pick it: darosior@af19dd3.

doc/API.md Outdated Show resolved Hide resolved
doc/API.md Outdated Show resolved Hide resolved
doc/API.md Outdated Show resolved Hide resolved
src/database/sqlite/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Show resolved Hide resolved
src/database/sqlite/schema.rs Outdated Show resolved Hide resolved
src/database/sqlite/schema.rs Outdated Show resolved Hide resolved
src/database/sqlite/schema.rs Outdated Show resolved Hide resolved
src/jsonrpc/api.rs Outdated Show resolved Hide resolved
src/jsonrpc/api.rs Outdated Show resolved Hide resolved
@edouardparis edouardparis force-pushed the labels-mvp branch 5 times, most recently from 205cce5 to ddb3fc3 Compare August 22, 2023 15:17
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

Nice! This looks good to me apart from a couple things in comments.

doc/API.md Outdated Show resolved Hide resolved
src/database/sqlite/utils.rs Show resolved Hide resolved
src/jsonrpc/api.rs Outdated Show resolved Hide resolved
src/database/mod.rs Outdated Show resolved Hide resolved
src/database/mod.rs Outdated Show resolved Hide resolved
@edouardparis edouardparis force-pushed the labels-mvp branch 2 times, most recently from deb7cbf to ed45ccc Compare August 24, 2023 10:03
@edouardparis edouardparis marked this pull request as ready for review August 24, 2023 10:07
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

I had forgotten to publish my review...

src/commands/mod.rs Show resolved Hide resolved
src/commands/mod.rs Show resolved Hide resolved
src/database/mod.rs Outdated Show resolved Hide resolved
src/database/mod.rs Outdated Show resolved Hide resolved
src/database/sqlite/mod.rs Show resolved Hide resolved
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

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

Looks good to me but the two mistakes in the error messages. Since i was requesting some changes anyways i added a couple nits on the documentation.

Comment on lines +183 to +184
// After Liana 1.1 we upgraded the schema to add the labels table.
fn migrate_v2_to_v3(conn: &mut rusqlite::Connection) -> Result<(), SqliteDbError> {
Copy link
Member

Choose a reason for hiding this comment

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

I've tested this using the test_migration functional test.

src/jsonrpc/api.rs Outdated Show resolved Hide resolved
src/jsonrpc/api.rs Outdated Show resolved Hide resolved
doc/API.md Outdated Show resolved Hide resolved
doc/API.md Outdated Show resolved Hide resolved
@darosior
Copy link
Member

ACK 204c160

@darosior darosior merged commit cf17cc2 into wizardsardine:master Aug 28, 2023
18 checks passed
@edouardparis edouardparis deleted the labels-mvp branch August 28, 2023 13:42
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.

2 participants