-
Notifications
You must be signed in to change notification settings - Fork 2
fix: Minor updates for media sources #443
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
Conversation
zanetagebka
commented
Oct 8, 2025
| end | ||
| ensure | ||
| @nullified_file_ids = nil | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chybi test. Folio::MediaSource nema zadny test? Prosim doplnit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pridano. Opraveno taky before_delete aby to rusilo taky sites_links pridane pres media_source
app/models/folio/tiptap/node.rb
Outdated
|
|
||
| file = file_klass.find_by(id: file_id) | ||
| file && !file.can_be_used_on_site?(site) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chybi test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pridano
app/models/folio/tiptap/node.rb
Outdated
| Rails.logger.error("Folio::Tiptap site validation error: #{e.message}") if defined?(Rails) | ||
| end | ||
|
|
||
| def file_invalid_for_site?(placement_hash, file_klass, site) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tohle nezni jako vec, ktera by mela byt na Folio::Tiptap::Node, ale nekde jinde
mreq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diky za doplneni testu 👍
Nelibi se mi obcasne predavani site do node pro potreby validace. Bud
- musi mit node vzdy
record(ktery muze mit site a pak lze resit validace) - nebo lepe omezme vyber obrazku jen na pouzitelne. Pak neni potreba validovat primo na node, ale staci obecne na zaznamu, jehoz je node skrze tiptap content soucasti.
Klidne si na to zavolejme, dik
* fix: selectedOptions.map.map is not a function, add missing locale, add alert about missing alt --------- Co-authored-by: Petr Marek <contact@petrmarek.eu>