Skip to content

Add index management commands#335

Open
Jonas-Puksta-Sensmetry wants to merge 24 commits into
sensmetry:mainfrom
Jonas-Puksta-Sensmetry:pr/index-management
Open

Add index management commands#335
Jonas-Puksta-Sensmetry wants to merge 24 commits into
sensmetry:mainfrom
Jonas-Puksta-Sensmetry:pr/index-management

Conversation

@Jonas-Puksta-Sensmetry
Copy link
Copy Markdown
Collaborator

@Jonas-Puksta-Sensmetry Jonas-Puksta-Sensmetry commented May 13, 2026

@Jonas-Puksta-Sensmetry Jonas-Puksta-Sensmetry force-pushed the pr/index-management branch 2 times, most recently from 857c51f to 20e5dcc Compare May 14, 2026 05:43
…, and `sysand index remove`

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
…eporting of `sysand index remove`

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
… of using cwd and add an initial index test

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
…more testing

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
@Jonas-Puksta-Sensmetry Jonas-Puksta-Sensmetry marked this pull request as ready for review May 15, 2026 05:26
@Jonas-Puksta-Sensmetry
Copy link
Copy Markdown
Collaborator Author

@andrius-puksta-sensmetry @consideRatio I'll add more tests and update documentation, but other parts are ready for review

…and add a bit more testing

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
…json and iri, and make sure to construct iri from normalized publisher and version

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
…ge in case that is not a directory

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
…it's not needed

Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Signed-off-by: jonas.puksta.sensmetry <jonas.puksta@sensmetry.com>
Copy link
Copy Markdown
Collaborator

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

Nice @Jonas-Puksta-Sensmetry!!

I let codex make two PRs reflecting the two main non-blocking feedback points I had:

  1. I see index_utils.rs to contain shared data models between env/index.rs and commands/index/..., but think _utils doesn't reflect that, so I refactored it into index/{model|iri}.rs instead
    PR to your PR with this change: Jonas-Puksta-Sensmetry#1
  2. I see commands/index/mod_tests.rs as integration tests, and as such they would belong into the core/tests folder.
    PR to your PR with this change, and point 1, Jonas-Puksta-Sensmetry#2

Comment thread core/src/index_utils.rs
#[derive(Debug, Serialize, Deserialize, Default)]
pub(crate) struct IndexJson {
pub(crate) projects: Vec<IndexProject>,
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I understand this has been lifted from core/src/env/index.rs, as it's now used by commands/index/ and env/

Since this file contains data structures of essence to these, naming it ..._utils.rs feels misleading, so maybe splitting this file into core/src/index/ and the files mod.rs / model.rs / iri.rs instead?


I opened Jonas-Puksta-Sensmetry#1 with such change, done with codex gpt 5.5 using mostly the comment above as a prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design and implement yanking functionality under index management command Add index management command

2 participants