-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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/5114 add parallel commit config #5161
Feature/5114 add parallel commit config #5161
Conversation
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5161 +/- ##
============================================
+ Coverage 43.04% 79.63% +36.58%
============================================
Files 23 167 +144
Lines 5018 13893 +8875
Branches 21 707 +686
============================================
+ Hits 2160 11063 +8903
+ Misses 2857 2677 -180
- Partials 1 153 +152
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Great feature! Some minor changes are needed. |
Made some of the changes you suggested. Please confirm if you still want me to change the logic with the if condition after reading the explanation at the comment above. I fixed the issue from your example and added some e2e tests using it. |
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.
Just a minor comment (optional).
…eature/5114_add_parallel_commit_config
…hub.com/mathbraga/mermaid into feature/5114_add_parallel_commit_config
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [mermaid](https://github.com/mermaid-js/mermaid) | [`10.7.0` -> `10.8.0`](https://renovatebot.com/diffs/npm/mermaid/10.7.0/10.8.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mermaid/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mermaid/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mermaid/10.7.0/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mermaid/10.7.0/10.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mermaid-js/mermaid (mermaid)</summary> ### [`v10.8.0`](https://github.com/mermaid-js/mermaid/releases/tag/v10.8.0) [Compare Source](https://github.com/mermaid-js/mermaid/compare/v10.7.0...v10.8.0) ### v10.8.0 #### Features <img width="375" alt="image" src="https://github.com/mermaid-js/mermaid/assets/5837277/c17405fb-2a06-4f7c-9c77-5eaba6c76747"> - Adding new diagram type - Block Diagram by [@​knsv](https://github.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/5221](https://github.com/mermaid-js/mermaid/pull/5221) - Feature/5114 add parallel commit config by [@​mathbraga](https://github.com/mathbraga) in [https://github.com/mermaid-js/mermaid/pull/5161](https://github.com/mermaid-js/mermaid/pull/5161) - Changes to Gantt Parsers to allow hashes and semicolons to titles, sections, and task data. by [@​FutzMonitor](https://github.com/FutzMonitor) in [https://github.com/mermaid-js/mermaid/pull/5095](https://github.com/mermaid-js/mermaid/pull/5095) - Feature/4653 add actor-top class to sequence diagram by [@​Ronid1](https://github.com/Ronid1) in [https://github.com/mermaid-js/mermaid/pull/5241](https://github.com/mermaid-js/mermaid/pull/5241) #### Documentation - Updated gantt chart docs to show all config options by [@​murdoa](https://github.com/murdoa) in [https://github.com/mermaid-js/mermaid/pull/5192](https://github.com/mermaid-js/mermaid/pull/5192) - Contribution documentation improvements by [@​nirname](https://github.com/nirname) in [https://github.com/mermaid-js/mermaid/pull/5132](https://github.com/mermaid-js/mermaid/pull/5132) - Update flowchart.md - how to use font-awesome [#​5195](https://github.com/mermaid-js/mermaid/issues/5195) by [@​arukiidou](https://github.com/arukiidou) in [https://github.com/mermaid-js/mermaid/pull/5196](https://github.com/mermaid-js/mermaid/pull/5196) - Add more detailed docs for Gantt tasks by [@​sorenisanerd](https://github.com/sorenisanerd) in [https://github.com/mermaid-js/mermaid/pull/5194](https://github.com/mermaid-js/mermaid/pull/5194) - Docs/4974 reorder integration links by [@​Ronid1](https://github.com/Ronid1) in [https://github.com/mermaid-js/mermaid/pull/5066](https://github.com/mermaid-js/mermaid/pull/5066) - docs: fix swimm link by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/5219](https://github.com/mermaid-js/mermaid/pull/5219) - Update Slack community links to Discord by [@​Olegt0rr](https://github.com/Olegt0rr) in [https://github.com/mermaid-js/mermaid/pull/5225](https://github.com/mermaid-js/mermaid/pull/5225) - Docs: Mermaid chart updates by [@​huynhicode](https://github.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/5232](https://github.com/mermaid-js/mermaid/pull/5232) - Fix typos in timeline syntax samples by [@​sblom](https://github.com/sblom) in [https://github.com/mermaid-js/mermaid/pull/5139](https://github.com/mermaid-js/mermaid/pull/5139) #### Bug fixes - Bug/5059 fix external connection after updating edges by [@​mathbraga](https://github.com/mathbraga) in [https://github.com/mermaid-js/mermaid/pull/5127](https://github.com/mermaid-js/mermaid/pull/5127) - \[Fix] Sequence diagram actor menu popup by [@​vitorsss](https://github.com/vitorsss) in [https://github.com/mermaid-js/mermaid/pull/5160](https://github.com/mermaid-js/mermaid/pull/5160) - fix: Dompurify Hooks by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5236](https://github.com/mermaid-js/mermaid/pull/5236) - Accurate pie chart labeling for text alignment by [@​JenningsWilliam](https://github.com/JenningsWilliam) in [https://github.com/mermaid-js/mermaid/pull/5141](https://github.com/mermaid-js/mermaid/pull/5141) - fix: Redirect of old URLs by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5250](https://github.com/mermaid-js/mermaid/pull/5250) - Fixed Typo in ErrorRenderer.ts by [@​FutzMonitor](https://github.com/FutzMonitor) in [https://github.com/mermaid-js/mermaid/pull/5256](https://github.com/mermaid-js/mermaid/pull/5256) #### Chores - Revert "Revert 5041 feature/4935 subgraph title margin config option" by [@​mathbraga](https://github.com/mathbraga) in [https://github.com/mermaid-js/mermaid/pull/5205](https://github.com/mermaid-js/mermaid/pull/5205) - build(deps-dev): bump follow-redirects from 1.15.2 to 1.15.5 by [@​dependabot](https://github.com/dependabot) in [https://github.com/mermaid-js/mermaid/pull/5200](https://github.com/mermaid-js/mermaid/pull/5200) - chore(deps): update all patch dependencies (patch) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/5150](https://github.com/mermaid-js/mermaid/pull/5150) - E2E Image comparison by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5208](https://github.com/mermaid-js/mermaid/pull/5208) - E2E test by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5210](https://github.com/mermaid-js/mermaid/pull/5210) - Optimise caching of test results by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5213](https://github.com/mermaid-js/mermaid/pull/5213) - Update update-browserlist.yml to fix deprecation and action fails by [@​Abrifq](https://github.com/Abrifq) in [https://github.com/mermaid-js/mermaid/pull/5151](https://github.com/mermaid-js/mermaid/pull/5151) - UpdateCypress by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5228](https://github.com/mermaid-js/mermaid/pull/5228) - Use node v20 by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5248](https://github.com/mermaid-js/mermaid/pull/5248) - Convert Mindmap to TS by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5247](https://github.com/mermaid-js/mermaid/pull/5247) - chore: Add interface naming Convention by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/5254](https://github.com/mermaid-js/mermaid/pull/5254) #### New Contributors - [@​murdoa](https://github.com/murdoa) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5192](https://github.com/mermaid-js/mermaid/pull/5192) - [@​arukiidou](https://github.com/arukiidou) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5196](https://github.com/mermaid-js/mermaid/pull/5196) - [@​sorenisanerd](https://github.com/sorenisanerd) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5194](https://github.com/mermaid-js/mermaid/pull/5194) - [@​Ronid1](https://github.com/Ronid1) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5066](https://github.com/mermaid-js/mermaid/pull/5066) - [@​Olegt0rr](https://github.com/Olegt0rr) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5225](https://github.com/mermaid-js/mermaid/pull/5225) - [@​vitorsss](https://github.com/vitorsss) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5160](https://github.com/mermaid-js/mermaid/pull/5160) - [@​sblom](https://github.com/sblom) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5139](https://github.com/mermaid-js/mermaid/pull/5139) - [@​JenningsWilliam](https://github.com/JenningsWilliam) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/5141](https://github.com/mermaid-js/mermaid/pull/5141) **Full Changelog**: mermaid-js/mermaid@v10.7.0...v10.8.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/levaintech/contented). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
📑 Summary
Adds support for parallel commits in git graphs.
Resolves #5114
📏 Design Decisions
The logic consists on searching for the closest parent commit of the current commit being positioned and placing it right after said parent, instead of the default that places after the latest commit.
parallelCommits: false
parallelCommits: true
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch