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

GO-83 Save templates MessageDraft content to HTML visualization in order to be searchable #479

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

luciajanikova
Copy link
Member

@luciajanikova luciajanikova requested a review from jsuchal October 2, 2024 10:00
@@ -70,6 +70,7 @@ class MessageDraft < Message

def update_content(parameters)
metadata["data"] = parameters.to_h
self.html_visualization = format_html_visualization
Copy link
Member

Choose a reason for hiding this comment

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

Toto mi pride podozrive. preco sa to nedeje v tom build_message_from_template?

Copy link
Member Author

Choose a reason for hiding this comment

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

Pravda, nebolo to tuto spravne, presunula som.

@luciajanikova luciajanikova force-pushed the GO-83/index_template_message_drafts_content branch from 78c940b to 8dfb31c Compare October 16, 2024 06:35
@luciajanikova luciajanikova requested a review from jsuchal October 16, 2024 06:44
@@ -106,6 +106,10 @@ def build_message_from_template(message)
filled_content.gsub!(template_item[:placeholder], message.metadata['data'][template_item[:name]].to_s)
end

message.update(
Copy link
Member

Choose a reason for hiding this comment

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

Na tejto metode sa mi mierne nepozdava, ze build robi vlastne create. Za normalnych okolnosti by to malo byt len vytvorenie do pamate bez ulozenia do db, ale asi tomu nieco brani lebo aj vyssie sa to deje.

@luciajanikova luciajanikova merged commit 98ba735 into main Oct 24, 2024
3 checks passed
@luciajanikova luciajanikova deleted the GO-83/index_template_message_drafts_content branch October 24, 2024 07:50
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