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

Store file instance metadata #53

Open
m4tx opened this issue Jul 14, 2019 · 1 comment
Open

Store file instance metadata #53

m4tx opened this issue Jul 14, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@m4tx
Copy link
Member

m4tx commented Jul 14, 2019

For each file path store e.g. whether it was approved by a mod as well as the hash of the content (to retrieve the rest of the attributes).

@m4tx m4tx added the enhancement New feature or request label Jul 14, 2019
@m4tx m4tx added this to the v0.4 milestone Jul 14, 2019
@rafalk342
Copy link

I don't know the exact story here but there are already entities

data class FileEntry(
@Id
var path: String,
@ManyToOne(fetch = FetchType.EAGER, optional = false)
var metadata: FileMetadata
)

and
data class FileMetadata(
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
var id: Long? = null,
@Column(unique = true, nullable = false)
var fileHash: String?,
var title: String?,
var author: String?,
var description: String?,
var mimeType: String?,
@OneToOne(mappedBy = "file", orphanRemoval = true, cascade = [CascadeType.REMOVE], fetch = FetchType.LAZY)
var thumbnail: FileThumbnail?,
@OneToOne(mappedBy = "file", orphanRemoval = true, cascade = [CascadeType.REMOVE], fetch = FetchType.LAZY)
var crawledContent: FileContent?,
@OneToMany(mappedBy = "metadata", orphanRemoval = true)
var files: List<FileEntry>?
)

Those entities are never used in the code but are already defined. It seems that we lack mod approval field.

How the crawler should work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants