Repository navigation
Retreive and store git tags on the commit model - #9383
Conversation
I've created a new branch What I've done is creating a new structure to store the branch tip which contains much less information than a commit (it only contains the sha and the commitIdentity, which is the required data to show on the branches UI). Good thing is that this allows us to request less data in the I've done this in a separate branch because I wanted to get your opinion on this approach first |
|
👋I've added 350dea1 to this branch which shows the list of tags on the commit view: (haven't added them yet on the history tab, since afaik the designs are not final) |
Co-Authored-By: Rafael Oleza <[email protected]>
350dea1 to
c1cfe2c
Compare
| const commits = await getCommits(repository, 'HEAD', 100) | ||
| expect(commits).toBeArrayOfSize(5) | ||
|
|
||
| expect(commits[0].tags).toIncludeSameMembers(['important']) | ||
| expect(commits[1].tags).toIncludeSameMembers([ | ||
| 'tentative', | ||
| 'less-important', | ||
| ]) | ||
| expect(commits[2].tags).toBeArrayOfSize(0) |
There was a problem hiding this comment.
This kind of tests are super nice! 😍
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@tierninho yes that's right! @tierninho oh that is not an intentional regression! fixing now |
142a870
|
@tierninho can you please verify the changed file list css is fixed now with 142a870? |
Co-Authored-By: evelyn masso <[email protected]>
tierninho
left a comment
There was a problem hiding this comment.
Changed files back to normal on Mac/Windows 👍
Add createTag() method to git library wrapper
Ups sorry about that, I introduced this in 8988dce 🤡 |



closes #9425
Description
getCommitsgit commandReviewing and Testing Notes
You can ignore all the added files in
app/test/fixtures.I think the only thing to test here is to make sure that all tags associated with a commit show up in the commit details UI.