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

147 rename the link class to file #148

Merged
merged 11 commits into from
Jan 21, 2025
Merged

Conversation

eoyilmaz
Copy link
Owner

This is kind of a huge change, which normally requires a major version update. But, I'm not going to do it and just update it from v1.0.2 to v.1.1.0 with a note saying that it is not compatible with 1.0.2...

Oh just forgot to add the Alembic revisions... creating them too..

….py` to reflect the change in class name.
…ng the `File.references` attribute.

* [#147] Moved the `created_with` attribute from `Version` to `File`.
* [#147] Removed the `Version.walk_inputs()` method.
* [#147] Added the `File.walk_references()` method.
* [#147] Updated `ReferenceMixin`:
  * [#147] Added the `primaryjoin` and `secondaryjoin` arguments on the relation, so that the `File` class can reference itself as it is also now deriving from `ReferenceMixin`.
  * [#147] Renamed the secondary column from `file_id` to `reference_id` which makes more sense and allows the `File` class to derive from `ReferenceMixin` too.
* [#147] Updated `Daily.versions` and `Daily.tasks` properties to query the `Version` instances over the new `Version.files` attribute instead of the removed `Version.output` attribute.
* [#147] Updated `Version` class:
  * [#147] It is now deriving from `Entity` instead of `File`, so it doesn't have any file related attributes anymore.
  * [#147] Removed the `inputs` and `outputs` attributes and introduced the `files` attribute to store `File` instances.
  * [#147] Renamed `Version.updated_paths()` to `Version.generate_path()` which now returns a `pathlib.Path` instance that is to be used with `File` instances, as the `Version` instance cannot store path values anymore.
  * [#147] The `absolute_full_path`, `absolute_path`, `full_path`, `path` and `filename` are now just properties returning data generated by the `Version.generate_path()` method. Which will be less useful as these properties are returning generated data and not stored ones.
@eoyilmaz eoyilmaz linked an issue Jan 14, 2025 that may be closed by this pull request
14 tasks
@eoyilmaz eoyilmaz self-assigned this Jan 14, 2025
@eoyilmaz eoyilmaz merged commit d3fc0d9 into develop Jan 21, 2025
24 checks passed
@eoyilmaz eoyilmaz deleted the 147-rename-the-link-class-to-file branch January 21, 2025 11:14
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.

Rename the Link class to File
1 participant