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

Read attributes from markdown for mentions #675

Merged
merged 7 commits into from
May 16, 2023

Conversation

alunturner
Copy link
Contributor

When there was the refactor to add the ability to pass attributes in when creating links, this function was missed.

Amending this function to pass through (specified) attributes means that now we will be able to pass a mention from the plain text editor (ie "markdown") into the rich text editor and have the rust model be instantiated containing that mention with the required attributes.

@alunturner alunturner requested a review from a team May 12, 2023 12:52
Copy link
Contributor

@aringenbach aringenbach left a comment

Choose a reason for hiding this comment

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

Looks fine but could you add a couple tests for this use case ? 🙏

@alunturner
Copy link
Contributor Author

alunturner commented May 12, 2023

Looks fine but could you add a couple tests for this use case ? 🙏

I'm trying to do this but don't really understand the code structure here. Where would this be tested? It's the greyed out code for this module that's confusing me

@codecov-commenter
Copy link

codecov-commenter commented May 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: +2.94 🎉

Comparison is base (a5efc8c) 86.83% compared to head (3803480) 89.77%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #675      +/-   ##
============================================
+ Coverage     86.83%   89.77%   +2.94%     
============================================
  Files           140       78      -62     
  Lines         16120    13495    -2625     
  Branches        750        0     -750     
============================================
- Hits          13997    12115    -1882     
+ Misses         1941     1380     -561     
+ Partials        182        0     -182     
Flag Coverage Δ
uitests ?
uitests-android ?
unittests 89.77% <ø> (+1.96%) ⬆️
unittests-android ?
unittests-ios ?
unittests-rust 89.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
crates/wysiwyg/src/dom/parser/parse.rs 97.73% <ø> (ø)

... and 62 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarcloud
Copy link

sonarcloud bot commented May 12, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@alunturner alunturner merged commit 0a7ab7a into main May 16, 2023
8 checks passed
@alunturner alunturner deleted the alunturner/read_attributes_from_markdown branch May 16, 2023 13:18
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.

None yet

4 participants