Mercurial > p > roundup > code
diff CHANGES.txt @ 7936:a9b136565838
feat: issue1525113 - notation to filter by logged-in user
At long last (almost 18 years) this patch lands. It allows sharing of
queries that want to use the currently logged in user (i.e. I or me).
By replacing an id number for the user by '@current_user' in the query
you can share the query for "my issues" where 'my' is the logged in
user not the person who created the query.
Updated the templates to use this.
Updated upgrading.py for directions on using it.
RDBMS and anydbm both work. Also expressions using it (e.g. not
@current_user) work and are tested.
Test code done.
I am not sure what the change to templating.py does. I am following
the original patch and have built a test case to hit the if
clause. But the rest of the test doesn't actualy provide the props I
need. If I knew what that code was supposed to do there I would create
a real test.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 06 May 2024 00:49:43 -0400 |
| parents | 5ac2af6c7f97 |
| children | 791b61ed11c9 |
line wrap: on
line diff
--- a/CHANGES.txt Sun May 05 20:57:11 2024 -0400 +++ b/CHANGES.txt Mon May 06 00:49:43 2024 -0400 @@ -203,6 +203,13 @@ (e.g. description of what a priority or status means) without being able to select the property in the classhelper. Good for adding help for Link properties. (John Rouilllard) +- issue1525113 - notation to filter by logged-in user. Use + @current_user with properties that are a Link to the 'user' class to + match the currently logged in user. Allows sharing of queries like + "Issues I created" or "Issues I am assigned to" by removing the + hard coded user id number and replacing it with the current user's + id. Tracker templates updated to use it. (John Rouillard from a + patch by Jon C. Thomason) 2023-07-13 2.3.0
