-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Convert gitGraph to TS #5407
base: develop
Are you sure you want to change the base?
Convert gitGraph to TS #5407
Conversation
❌ Deploy Preview for mermaid-js failed.
|
@sidharthv96 Hey sidharth would you know if this .hash is used? I don't see this for other diagrams so I have a feeling this is legacy code that I can remove mermaid/packages/mermaid/src/diagrams/git/gitGraphAst.ts Lines 214 to 221 in d464a6b
|
Yes, you can remove that hash. |
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.
Awesome work so far @NicolasCwy 🚀
Some minor comments regarding the conventions.
const orderInt = parseInt(order, 10); | ||
if (isNaN(orderInt)) { | ||
throw new Error('Invalid order provided'); | ||
// TODO - what is this hash? |
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.
The hash is used in external apps like the live editor to show more info about an error.
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.
Oh so in your previous comment about removing that hash, you didn't mean that I can remove all the hashes?
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.
Bump on this @sidharthv96
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.
You can remove the ones that are incorrect/filled with dummy data. It would be better if you can put the right data in, but I don't think that's available in the DB. (line position and all)
'merge ' + | ||
otherBranchName + | ||
' ' + | ||
custom_id + | ||
'_UNIQUE ' + | ||
override_type + | ||
' ' + | ||
custom_tag, |
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.
Please use string template instead.
@sidharthv96 Can the old git graph renderer be removed? I don't see any references to it |
📑 Summary
Brief description about the content of your PR.
Resolves #
📏 Design Decisions
Describe the way your implementation works or what design decisions you made if applicable.
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch