-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rename the Link class to File #147
Comments
eoyilmaz
added a commit
that referenced
this issue
Jan 13, 2025
eoyilmaz
added a commit
that referenced
this issue
Jan 13, 2025
eoyilmaz
added a commit
that referenced
this issue
Jan 14, 2025
….py` to reflect the change in class name.
eoyilmaz
added a commit
that referenced
this issue
Jan 14, 2025
eoyilmaz
added a commit
that referenced
this issue
Jan 14, 2025
eoyilmaz
added a commit
that referenced
this issue
Jan 14, 2025
…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
added a commit
that referenced
this issue
Jan 14, 2025
eoyilmaz
added a commit
that referenced
this issue
Jan 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User Story
As the developer of Stalker I want to rename the
Link
class toFile
as it is what the 99% of the time it is, the current naming is making it hard to think around theLink
s as a file and build stuff with it (i.e. the new representation logic in Anima Library).Acceptance Criteria
Link
class:File
.stalker.models.link
module tostalker.models.file
.Version.inputs
toFile.references
(using theReferenceMixin
) this should track the individual references of that file which can be different for eachFile
that are present in theVersion.files
attribute.Version
class:Link
butEntity
, so that theVersion
will not have a file path stored in the DB anymore.files
attribute that stores the relatedFile
instances.created_with
attribute to theFile
class.inputs
attribute toFile
class as thereferences
attribute (with theReferencesMixin
).outputs
attribute.Version.files
should be used instead.Version.update_paths()
togenerate_path()
which generates aPath
instance instead of setting the now deletedfilename
andpath
variables.ReferenceMixin
:reference_id
.primary_join
and aseconday_join
to therelationship
so that it is possible to add references toFile
class, which at the end is going to reference itself.The text was updated successfully, but these errors were encountered: