Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support pagination in QueryWithContinuation (dual continuation) #69

Open
@CXuesong

Description

@CXuesong

The current implementation ofQueryWithContinuation, or the relatedWikiPagePropertyProvider<T> parameter classes, are not design to support pagination inside page properties (&prop= values, such as&props=revision).

Though there is some basic logic inRefreshPagesAsync to merge prop list when there are some props need pagination, we have not introduced proper public API to let consumer adjust the pagination size of props itself.IWikiPagePropertyProvider<T>.GetMaxPaginationSize is used to restrict the max allowed title count (e.g. count oftitle= values), instead of props item count (e.g.x inrvlimit=x).

The justification for not breaking the wall betweenWikiPagePropertyList<T> (callsQueryWithContinuation) andWikiPagePropertyProvider before is the potential complexity to deal with dual continuation (#68 (comment)). But perhaps we may break the wall, and make it possible for consumer to plugIWikiPagePropertyProvider intoWikiPagePropertyList instead of deriving from the latter one.

Before this feature has been implemented, for example, you may consider the following approach to get the complete page property list when the pages are taken from another wikilist/generator (#68 (comment))

  • UseCategoryMembersGenerator.ListItemAsync to get a sequence ofWikiPageStubs,
  • ConvertWikiPageStubs intoWikiPages,
  • RefreshWikiPage sequence by batches (e.g., pywikibot batches pages by 30 items)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp