Skip to content

WIP: Add releases to the Readme.md (or other file) in form of mermaid graph - #2802

Open
an3l wants to merge 1 commit into
MariaDB:10.11from
an3l:anel-releases-graph
Open

WIP: Add releases to the Readme.md (or other file) in form of mermaid graph#2802
an3l wants to merge 1 commit into
MariaDB:10.11from
an3l:anel-releases-graph

Conversation

@an3l

@an3l an3l commented Oct 24, 2023

Copy link
Copy Markdown
Contributor
  • Release cycle may be tracked as graph by using mermaid block that is automatically rendered by GitHub.

  • Use release chart as part of codebase.

  • The graph may be mainted by the branch and/or have specific Releases.md file for one or more brances (1x.y)

  • Sure correct dates and formats have to be corrected (so it is wip).

  • Reviewer: ian@mariadb.org

See Readme.md in GitHub

image

- Release cycle may be tracked as graph by using `mermaid` block that is
automatically rendered by GitHub.
- Use release chart as part of codebase.
- The graph may be mainted by the branch and/or have specific
`Releases.md` file for one or more brances (`1x.y`)

- Reviewer: <ian@mariadb.org>
@an3l an3l added this to the 10.11 milestone Oct 24, 2023
@an3l
an3l requested a review from iangilfillan October 24, 2023 22:11
@an3l an3l added the MariaDB Foundation Pull requests created by MariaDB Foundation label Oct 25, 2023
@vuvova

vuvova commented Oct 25, 2023

Copy link
Copy Markdown
Member

FYI, going to https://github.com/an3l/server/tree/anel-releases-graph I get

Unable to render rich display
Invalid date:CRITICAL 2023-04-11

@an3l

an3l commented Oct 26, 2023

Copy link
Copy Markdown
Contributor Author

FYI, going to https://github.com/an3l/server/tree/anel-releases-graph I get

Unable to render rich display
Invalid date:CRITICAL 2023-04-11

Weird, it works for me on the same branch:

image

The same block should also render here in comments :

gantt
    title Releases for 2023
    section 10.11
      10.11 (RC)        :crit, CRITICAL         2023-04-11, 2d
      WAITING           :milestone, crit            after CRITICAL
    section 10.6
      10.6 (GA)         :active, IN_DEVELOPMENT      2023-04-12, 2d
    section 10.4
      10.4              :done, RELEASED    2023-04-13, 1d
      Released          :milestone,done    after RELEASED
Loading

Seems that problem in your case (for some reason) is scheduling tasks after another completed tasks with usage of after (simulating predecessor relationship).
We can remove that thing and use exact dates , so below should be rendered also for you (right?):

gantt
    title Releases for 2023
    section 10.11
      10.11 (RC)        :crit,         2023-04-11, 2d
      WAITING           :milestone,crit             2023-04-13,2023-04-13
    section 10.6
      10.6 (GA)         :active,      2023-04-12, 2d
    section 10.4
      10.4              :done    2023-04-13, 1d
      Released          :milestone,done      2023-04-14, 2023-04-14
Loading

@vuvova

vuvova commented Oct 26, 2023

Copy link
Copy Markdown
Member

All I see is
1

@an3l

an3l commented Oct 26, 2023

Copy link
Copy Markdown
Contributor Author

I will take a look, thanks.

@an3l

an3l commented Oct 26, 2023

Copy link
Copy Markdown
Contributor Author

So looking into github and mermaid it should allow gantt type.
I can see rendered graph from mermaid's documentation

gantt
    apple :a, 2017-07-20, 1w
    banana :crit, b, 2017-07-23, 1d
    cherry :active, c, after b a, 1d
Loading

Now for our example, it should be similar,I added missing commas for proper syntax (although I can see graphs in previous comment).
I can see the graphs in this comment, hope others can too :)

gantt
    title Releases for 2023
    section 10.11
      10.11 (RC)        :crit, c1                , 2023-04-11, 2d
      WAITING           :milestone, m1,  after c1, 1m
    section 10.6
      10.6 (GA)         :active, a1 , 2023-04-12, 2d
    section 10.4
      10.4              :done, r1 , 2023-04-13, 1d
      Released          :milestone,done , after r1, 1m
Loading

@vuvova

vuvova commented Oct 26, 2023

Copy link
Copy Markdown
Member

Yes, the last comment looks fine, thanks

@iangilfillan

Copy link
Copy Markdown
Contributor

@vuvova I still see "Unable to render rich display". But is displaying graphs here a worthwhile effort? It just seems to add a maintenance burden. Judging by this file still containing old KB links, it's almost guaranteed to fall behind.

@vuvova

vuvova commented Jan 20, 2026

Copy link
Copy Markdown
Member

I also see "Unable to render rich display". But the reason is Invalid date:IN_DEVELOPMENT 2023-04-12 so I suspect with some tweaking it'll work.

Whether it's a worthwhile effort? I wouldn't spend time on it. But it's bright and eye-catching, I can see why someone might want to have it. It's relatively easy to ensure that it won't fall behind, for example, cmake can check that README.md always has at least a year worth of dates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

4 participants