-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
🥔✨ Journal
: extract Term
s from Entry
s
#1633
Conversation
app/furniture/journal/renderer.rb
Outdated
doc.gsub(/@([a-zA-Z\d]*)@(.*\.[a-zA-Z]*)/, '<a href="https://\2/@\1">@\1@\2</a>') | ||
doc | ||
.gsub(/@([a-zA-Z\d]*)@(.*\.[a-zA-Z]*)/, '<a href="https://\2/@\1">@\1@\2</a>') | ||
# .gsub(/#(\w+)/, '<a href="../terms/\1">#\1</a>') |
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.
Leftovers; just wanted to commit it before I fell asleep.
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.
Should this commented-out code be removed, or are you keeping it for the future?
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.
It should not be in this branch; but the follow on one...
- #1633 I noticed I'd left the active-record relationship cables on the `Journal::Entry` loose. Getting rid of `delegate`s in favor of the `has_one :x, through: :y`
eb103c2
to
9cfdb7b
Compare
- #1633 I noticed I'd left the active-record relationship cables on the `Journal::Entry` loose. Getting rid of `delegate`s in favor of the `has_one :x, through: :y`
Not yet linking to them; but that should be a decent next step.
632529a
to
e3fd349
Compare
Are these meant to be... tags? keywords? something else? I feel like using more "standard" words from the blogging world might make it easier for both coders and people using the app. |
db/schema.rb
Outdated
create_table "journal_terms", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| | ||
t.uuid "journal_id" | ||
t.string "canonical_term" | ||
t.text "aliases" |
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.
Would be nice to make this an array, or something more structured than just text (which I assume right now it means to be comma-separated?).
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.
I'll give it a shot! I have not used array types at the database level before but it shouldn't be too hard.
Oh, I see now that you are extracting hashtags from the body. So maybe "tags" would be a better name? |
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.
Nothing blocking, but I would love for this new thing to be named in a more "standard" way, e.g. "tags" or "keyword".
I like |
d8ac9bd
to
1f7e22e
Compare
- Rename to `Keyword` - Use an `array` field! - validate!
1f7e22e
to
06d3df7
Compare
Journal
: WritingEntries
journal#2Not yet linking to them; but that should be a decent next step.