Skip to content

Initial commit of a CLI tool to help with NiFi flow migrations - #1

Merged
lfrancke merged 17 commits into
mainfrom
feat/initial-commit
Oct 13, 2025
Merged

Initial commit of a CLI tool to help with NiFi flow migrations#1
lfrancke merged 17 commits into
mainfrom
feat/initial-commit

Conversation

@lfrancke

@lfrancke lfrancke commented Oct 8, 2025

Copy link
Copy Markdown
Member

I created this for a support case we had.
I modeled the entire structure, lints etc. after the boil tool as that was the last tool we added and I hope that it follows the latest best practices.

Note

Full disclosure: AI was used (Claude) to help me with this but every line was read and checked by me. I haven't done Rust development for real in 2 years or so, be kind.

Important

The build fails due to: ubuntu-22.04-arm, ubuntu-24.04-arm and windows-11-arm are not supported yet for private repositories but I'll leave it in for now until we decide whether it should be private or public.

@lfrancke lfrancke self-assigned this Oct 8, 2025
@lfrancke lfrancke moved this to Development: Waiting for Review in Stackable Engineering Oct 8, 2025
Comment thread src/main.rs Outdated

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving, although I haven't run it

@Techassi Techassi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I looked through this PR but didn't run the CLi yet.

Two things:

  • Does it make sense to put this code next to the NiFi operator (or in a dedicated "tools" repo)?
  • All doc comments should end with full stops. I didn't want to mention this on every doc comment, but I instead only mention it once here.

Comment thread .cargo/config.toml Outdated
Comment thread .github/workflows/nifi_migrate_pr.yaml Outdated
Comment thread .github/workflows/pre_commit.yaml Outdated
Comment thread .yamllint.yaml Outdated
Comment thread CLAUDE.md
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/rules/jolt_transform.rs Outdated
Comment thread src/rules/mod.rs Outdated
@Techassi Techassi moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Oct 9, 2025
lfrancke and others added 4 commits October 9, 2025 13:13
Co-authored-by: Techassi <git@techassi.dev>
Co-authored-by: Techassi <git@techassi.dev>
@lfrancke

lfrancke commented Oct 9, 2025

Copy link
Copy Markdown
Member Author

Doc comments now end in periods with a4497a2 (#1)

@lfrancke

lfrancke commented Oct 9, 2025

Copy link
Copy Markdown
Member Author

to_string -> to_owned done in 8b172b3 (#1)

lfrancke and others added 6 commits October 9, 2025 16:47
- Remove `new` for Migrator
- Rustdoc improvement
- Rename lib.rs and move to a migration module
Co-authored-by: Techassi <git@techassi.dev>
Co-authored-by: Techassi <git@techassi.dev>
@lfrancke

Copy link
Copy Markdown
Member Author

There's probably still a comment or two missing but maybe you can have a look at the resolved ones to clean the PR up a bit first before I tackle them.

lfrancke and others added 3 commits October 11, 2025 15:48
@lfrancke
lfrancke merged commit be9e449 into main Oct 13, 2025
5 of 6 checks passed
@lfrancke
lfrancke deleted the feat/initial-commit branch October 13, 2025 08:59
@lfrancke lfrancke moved this from Development: In Review to Development: Done in Stackable Engineering Oct 13, 2025
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants