Vrinda A wants to merge 9 commits from /u/vrinda/allura/ to master, 2022-03-07
Commit | Date | |
---|---|---|
2021-12-01 13:53:58 | Tree | |
2021-12-01 13:52:54 | Tree | |
2019-10-15 09:37:00 | Tree | |
[f2c0ff]
by
Revert "Feedback app" This reverts commit 8d1d8734c31eac2c8257d75a592dbb5a99e3ceef. |
2019-10-10 11:29:37 | Tree |
2019-09-26 04:55:06 | Tree | |
2019-09-26 04:53:16 | Tree | |
2019-09-25 17:26:19 | Tree | |
2019-09-25 17:14:22 | Tree | |
[9b9776]
by
[FEATURE] Added ForgeFeedback app - This app will let the user rate and review a project. |
2019-09-25 17:14:22 | Tree |
Hi,
The unsubscribe commit looks pretty good. Would you able to add a test for it? For example
test_new_admin_subscriptions
covers when an admin user is added. It'd be nice to have a similar sort of test for when an admin user is removed.For the ticket & commit message linking, unfortunately I don't think it is quite the right direction. It does a lot of lookups & processing, so can be slow on large projects and sites. Also it is specifically for ticket pages and git commits, but it would be nice to handle other commit types (Allura supports SVN and Hg too) and would be nice to have commits possibly show up on wiki pages or other things besides tickets.
I'd recommend that ArtifactReference and/or Shortlink records be created when the commit is received instead. And then everywhere the existing
related_artifacts
macro is used (tickets, wiki pages, comment posts, etc) it will display the commit links alongside any other related links.Of course the challenge will be exactly how to create the right ArtifactReference and Shortlink records. And offhand I'm not remembering what ArtifactReference does and what Shortlink does, but I do know they are very closely related. I think
add_artifacts
is what is used currently to create those records (for existing things like tickets[#123]
or[WikiPageName]
) particularly with its call tofind_shortlinks
. But for commits I don't know if add_artifacts is called or not (maybe not since a Commit is not an Artifact, more on that in a bit). Commits do have repo_refresh.py where a lot of background processing of new commits happens, so that'd be a potentially good spot to add/update code. That file does create some ArtifactReference and Shortlink records already - I think so that a ticket or comment or page can reference the commit like[aef3af3]
but that is the opposite of what you are trying to accomplish. Another factor to be aware of is thatCommit
does not inherit fromArtifact
like so many other things do, so that might be a problem. I don't know why it is not an Artifact, maybe it could be, or maybe some code could handle Commit a little special and it'd be ok.Sorry for the not all good response, but hope it is ok. If you want to work on the different approach like I suggested I'd be happy to keep giving feedback on it, but I realize it probably would be a big undertaking.
-Dave
https://forge-allura.apache.org/p/allura/git/merge-requests/386/ is the updated MR