Any known limit of number of lists that one can be owner/member of?
We have just migrated hundreds of lists from Mailman 2 to Mailman 3. It was smooth in most of the cases. However, we just notice that there are some abnormal behaviour of Postorius for particular users who are owner/member of a large number of lists. We further look into a particular user who is owner of 84 lists. When the user login Postorius, only 50 lists are displayed no matter what the number of "Results per page" is chosen. Prev/Next page cannot be clicked as there is only 1 page. When I use the following mailman client snippet, it also displays the same 50 lists:
lists = client.find_lists('xxx@yyy.com', 'owner') for m_list in lists: print(m_list.fqdn_listname)
Did we hit any limit of find_lists? Is it a bug or are something wrong during the migration?
When the user use "Mailman settings", the page can still display all lists though (it's slow as it probably did a lot of SQL queries!).
On 5/8/19 3:33 AM, Alan So wrote:
We have just migrated hundreds of lists from Mailman 2 to Mailman 3. It was smooth in most of the cases. However, we just notice that there are some abnormal behaviour of Postorius for particular users who are owner/member of a large number of lists. We further look into a particular user who is owner of 84 lists. When the user login Postorius, only 50 lists are displayed no matter what the number of "Results per page" is chosen. Prev/Next page cannot be clicked as there is only 1 page.
See <https://gitlab.com/mailman/postorius/issues/335>
When I use the following mailman client snippet, it also displays the same 50 lists:
lists = client.find_lists('xxx@yyy.com', 'owner') for m_list in lists: print(m_list.fqdn_listname)
Did we hit any limit of find_lists? Is it a bug or are something wrong during the migration?
find_lists defaults to count=50. What happens if you do
lists = client.find_lists('xxx@yyy.com', 'owner', count=100)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
It can now display 66 lists but the total should be 70 after cross checking with colleagues. Besides a few lists are missing, there are also a few lists are listed that the user is not the owner. However, by browsing to the lists directly, the list of owners was correctly migrated.
If I query the mysql table member using the address_id and role=1, the same 66 lists are displayed. If I query using role=2, it displays the 70 lists correctly. The user also subscribe to the lists she owned.
Therefore, beside the view limit of 50 in Postorius, there is also an issue of data integrity after the migration.
Oooops, sorry, I just messed up the code. It should be able to display the 70 lists correctly. Therefore, the only issue is the view limit of 50 in Postorius.
As the issue https://gitlab.com/mailman/postorius/issues/335 is still opened, will it be solved soon? Thanks.
One more finding. If the user select "All" in the "Filter by role" box, nothing can be shown. So, that shouldn't be related to the default limit of 50 with find_lists. Otherwise, at least some lists should be displayed.
On 5/14/19 12:18 AM, Alan So wrote:
One more finding. If the user select "All" in the "Filter by role" box, nothing can be shown. So, that shouldn't be related to the default limit of 50 with find_lists. Otherwise, at least some lists should be displayed.
If you are saying no lists are shown when the user selects "all", is it possible that no lists are advertised? I.e., all lists have Settings -> List Identity -> Show list on index page = No.
If that is not the case the advertised list should be shown on the "all" view or when not logged in.
I don't see an issue at <https://lists.mailman3.org/mailman3/lists/> or <https://mail.python.org/mailman3/lists/>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for your explanation. Just verified with a normal user and notice that no lists will be shown when all is selected since all lists are not advertised. I thought that for a user with that issue (as owner of more than 50 lists) at least her subscription or lists with her as owner will be shown.
On 5/14/19 6:34 PM, Alan So wrote:
Thanks for your explanation. Just verified with a normal user and notice that no lists will be shown when all is selected since all lists are not advertised. I thought that for a user with that issue (as owner of more than 50 lists) at least her subscription or lists with her as owner will be shown.
I understand it can be confusing because "all" is one of the "roles" in the "Filter by Role" dropdown, but the unfiltered "all-lists" view is generated differently from the other filtered views and only shows unadvertised lists to a site admin (superuser). That's also why the all-lists view is paginated (and can show more than 50 lists) and the other roles are not. We will be fixing that part.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Alan So
-
Mark Sapiro