Gitea: Releases didn't display

Created on 13 Jul 2017  路  26Comments  路  Source: go-gitea/gitea

see https://try.gitea.io/lunny/core/releases for examples. This repo is migrated from https://github.com/go-xorm/core. The counter is 8, but nothing listed.

kinbug

Most helpful comment

Not only but I'm working on that. Anyway I think it should not be 1.2.0 blocker. This can be later backported to 1.2.1

All 26 comments

The problem is that the count is computed using GitRepo.NumTags(), whereas the list of releases is computed using the database. During the migration, the repo's tags are preserved, but no corresponding releases are added to the database.

We also don't generate/delete releases when tags are added/deleted. It seems there are two options

  1. Enforce a one-to-one correspondence between releases and tags, by generating/deleting releases in the database when tags are added/deleted (including tags added during a migration)
  2. Don't enforce such a one-to-one correspondence, and just compute the count using the DB. This seems like the easier option.

I think the first option would be needed as otherwise mirrors will be missing releases

As @lafriks said, I like the first option

If we chose option 2, we need a new tab named tags. Tags is different with Releases, user could create Releases on Tags, user also could upload files to create Releases.

@lunny I plan to work on first option

@lafriks any news ?
We could stick with option 1 we list tags and releases under release. Just if we found a release matching tag we display the attachements and formatted message in place of just the short message of tag. I think github does the same (even wrap successive tags without corresponding release).

@sapk I'm working on it, hope to finish on weekend

@lafriks option 2 maybe an easier one. When importing, we can create release for every tags and inserted to databases. And on v1.3 we can add tags on Source, so that a release could be created from a tag. It's different from Github but more clear. And also it's easy to implement public release of private repo.

@lafriks since release/v1.2 created, please rebase and send PR to that branch.

@lunny I would say keep on master and backport.

I will keep it to master and then backport

@sapk @lafriks yes, you are right!

@lafriks do have open a PR even with un-finished work but that we can pre-review ? Can we do anything to help you ?

@sapk I will submit PR later today

Hi.
How does the issue look? The last on the list :)

@qdbdbp also #2370 which will be back ported to v1.2. I will release v1.2.0-rc1 at first at #2388 merged.

This isn't fixed yet.

Yes only point 2 is implemented

@lafriks, So next, we only need copy tags to releases when migrating and add a button on tags to create a release.

Not only but I'm working on that. Anyway I think it should not be 1.2.0 blocker. This can be later backported to 1.2.1

@lunny is the counter still 8? or is it 0?

@bkcsoft now counter is 0

If so the bug would be fixed in my opinion. Gitea only imports the git repo, and Releases are metadata outside the repo.

~But how to create releases?~ Then we need a tags list on release create page?

@lunny Yes, that would be the expected behaviour IMO

Possibly related: #3247

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haytona picture haytona  路  3Comments

lunny picture lunny  路  3Comments

ghost picture ghost  路  3Comments

flozz picture flozz  路  3Comments

BNolet picture BNolet  路  3Comments