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

Allow unpermitted tags to be added to messages, threads #63

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

stage-rl
Copy link
Collaborator

No description provided.

@stage-rl stage-rl requested a review from jsuchal September 26, 2023 07:52
@@ -4,7 +4,7 @@ class MessagesController < ApplicationController
def show
authorize @message

@message.update(read: true)
@message.update(read: true) if @message.read == false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toto nech fixnuje mirrec

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ano, OK, tak toto revertujem. S Mirom som dohodnuty, spravil si na to Jira task

app/controllers/messages_controller.rb Outdated Show resolved Hide resolved
@@ -0,0 +1,8 @@
module Common
class AttachedTagLabelComponent < ViewComponent::Base
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uz sa nam tu trosku motaju dva nazvy: Tag, Label a este nejaky attachedtag. Asi to zjednotme na nieco. Ja som za tagy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tym, ze je vnutri button (krizik) na zmazanie vazby, tak toto je specificky komponent pre zobrazenie tagov, ktore su naviazane na nejaky objekt (zatial vlakno, sprava, ale je to genericke). Preto Attached... To by som vzhladom na citatelnost nechal

Ten Label mozem dat teoreticky prec.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ono potom sa to skor podoba na nejakypolymorphic komponent a tam je konvencia xx<able> cize tu by to bolo nieco ako TaggableTagComponent

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tak uz len tu sa nezhodujeme. Tych komponentov je tam strasne vela (postupne vznikaju, a asi chcu raz za cas upratat) a vychadza mi, ze musia mat co najdeskriptivnejsie nazvy, najma ak su specializovane, t.j. nevadia mi dlhe nazvy. Pretoze je ine TagComponent tu, a TagComponent vo vybere takych, ktore pridavas, a to je zas iny, ako taky, kde manazujes pristupy pre skupiny. Preto prichadzam s kompromisom DestroyableTagRelationComponent

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ano tomu rozumiem preto som to nenavrhol nazvat TagComponent. DestroyableTagRelationComponent je moc :D

RemovableTagComponent? Destroy je rails/tech vec, domenovo ten tag davas prec, zmazes, nie "znicis".

app/controllers/messages_controller.rb Outdated Show resolved Hide resolved
@stage-rl stage-rl requested a review from jsuchal September 26, 2023 13:09
@stage-rl stage-rl merged commit 3e5e865 into main Sep 27, 2023
@stage-rl stage-rl deleted the GO-216/allow_unassigned_tags branch September 27, 2023 12:26
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.

2 participants