- Fixed ID generation for files and directories in OurDBFS,
preventing collisions and improving data integrity. This
ensures that IDs are consistently and uniquely assigned.
- Updated save methods to correctly update the `metadata.id`
field across all FSEntry types (File, Directory, Symlink).
This change solves a previous issue where IDs weren't being
properly persisted.
- Added incremental mode to OurDB, improving performance for
large datasets. This allows for more efficient updates
instead of full overwrites.
- Handle updates correctly in OurDB `set` function, preventing errors
when incremental mode is enabled.
- Ensure directories are correctly created with metadata in OurDBFS.
- Add debug print statements to OurDBVFS for improved debugging.
- Simplify OurDBVFS `get_entry` function for better readability and
correctness. Fixes potential issues with returning references.
- Update tests to reflect changes and use a temporary directory
to avoid conflicts.
- Replace `lut.incremental!` with a safer check using `if v := lut.incremental`.
- This ensures that the test doesn't panic if `incremental` is unexpectedly nil.
- The new assertions explicitly check for the existence of a value and its correctness.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Remove unnecessary parameter from `errors_report` function.
- Pass `Collection` by mutable reference to `export` function.
- Fix `.collection` file content in export test.
- Update test cases to reflect changes.
- Correct path in test data.
- Use mutable reference for `col` in `Tree.export`.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Changed the conditional check in `next_start`, `next_start_lf`, and `ensure_last_is_paragraph` functions to improve readability. The original `!is` check was slightly less clear. This change uses the `!` operator more consistently and makes the intention clearer.
- Remove a placeholder panic in `dbfs_test.v`.
- Improve `namedb_test.v` by using `get_from_id` to
retrieve public keys by ID and then using `get` to
retrieve the data associated with the public key. This
better reflects the intended usage and clarifies the test.
Co-authored-by: supermario <mariobassem12@gmail.com>
- Improve the parsing of Git URLs to correctly handle paths and branches.
- Fix an issue where the `griddriver` installer was not correctly
- installed.
- Fix a bug in the `IPAddress` `ping` function.
- Update the `GitLocation` struct to correctly handle branches and
- tags.
- Fix a bug in the `GitRepo` `checkout` function.
- Improve the `gitlocation_from_url` function to handle various Git
- URL formats.
- Update the `livekit` installer to use the correct source command.
- Update the `golang` installer to use the correct `go version`
- command.
- Update the `griddriver` installer to use the correct version
- command.
Co-authored-by: supermario <mariobassem12@gmail.com>
- Fix issues in package installation and removal across
different platforms (Ubuntu, macOS, Alpine, Arch).
- Improve error handling and add sudo support where
necessary.
- Enhance screen status check to accurately reflect
process activity.
- Address minor bugs in `db.v`, `done.v`, and
`net_test.v`.
- Correct minor inconsistencies in package names.
- Removed commented-out code from `element_action.v` and
`element_codeblock.v`.
- Enabled processing of actions within code blocks.
- The code now correctly handles multiple actions within a
code block.
- Improves the handling of actions within Markdown.
- Remove unnecessary casts from `int(lut.keysize)` to `lut.keysize`
- This simplifies the code and improves readability.
- No functional changes are introduced.