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

Feature/url extractor #558

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Feature/url extractor #558

merged 6 commits into from
Sep 2, 2024

Conversation

electronicbites
Copy link
Collaborator

@electronicbites electronicbites commented Sep 1, 2024

Introduces a mechanism to detect URLs in node contents. If an URL is detected it just gets logged. It should be stored as an entity to the database. The frontend could present detected URls, the content of a website could be scraped and URLs can be exported to the show notes

This PR also introduces ChangesListener that subscribes to every change in the outliner.
The EventConsumer was renamed to CommandProcessor

episode_id was added to every event type while it was removed from the Dispatch.subscribe function since it was not used.

@electronicbites electronicbites self-assigned this Sep 1, 2024
so we are avoiding a repository call, besides the node might have been deleted meanwhile
also next id which was used for `NodeDeletedEvent` might be nil
that listens to change events of nodes
@electronicbites electronicbites marked this pull request as ready for review September 2, 2024 09:47
@sorax
Copy link
Collaborator

sorax commented Sep 2, 2024

Hey @electronicbites, regarding the topic:

"episode_id was [...] removed from the Dispatch.subscribe function since it was not used."

when we have multiple outlines, how can we only subscribe (get updates for) the outline we are currently editing and not updates from other episode-nodes someone else is using in another episode?

is this already the case or would the subscribe with episode_id be a good idea here?

@electronicbites
Copy link
Collaborator Author

@sorax currently there is now way. It totally makes sense to create a channel per outline. I was about to write, we will do it later, but the more I am thinking about, I am about to revert this commit ... still thinking ;)

@sorax
Copy link
Collaborator

sorax commented Sep 2, 2024

let's merge this and do it later on

@sorax sorax merged commit 2479c36 into main Sep 2, 2024
1 check passed
@sorax sorax deleted the feature/url-extractor branch September 2, 2024 18:48
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