Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor title functions #3232

Merged
merged 16 commits into from Apr 5, 2022
Merged

Conversation

CasHil
Copy link
Contributor

@CasHil CasHil commented Mar 29, 2022

I found a TODO while digging through the code and figured it was an easy issue to pick up. The goal of this PR is to move the functions titleForInternalLink and titleForUri from WikiPage to PageTitle, where I think they make more sense. I believe there isn't a relevant issue on Phabricator for this.

@CasHil CasHil requested a review from cooltey March 30, 2022 22:31
@CasHil CasHil requested a review from cooltey April 4, 2022 13:27
@cooltey cooltey merged commit 6187b31 into wikimedia:main Apr 5, 2022
sharvaniharan added a commit that referenced this pull request Apr 6, 2022
* main: (23 commits)
  Fix updating of reading lists after renaming. (#3251)
  Update kotlin-gradle-plugin version to 1.6.20 (#3250)
  Fix: update talk page pageTitle after changing the language (#3241)
  Refactor title functions (#3232)
  Disable flaky test of EventPlatformClient. (#3249)
  Prevent possible crash when highlighting text for editing. (#3248)
  Bump version code (#3247)
  Article clicks and Edit history analytics wiring (#3234)
  Change affects to affect (incorrect plural) (#3242)
  Fix improper scrolling/jumping when composing long Talk message. (#3245)
  Fix behavior of article overflow menu in split-screen mode. (#3244)
  Improve OOP logic for analytics events containing state information. (#3240)
  Localisation updates from https://translatewiki.net.
  Convert EventPlatformClient to kotlin. (#3239)
  Localisation updates from https://translatewiki.net.
  Get the updated value of duration in timed events. (#3237)
  Add DAO method to get multiple reading lists. (#3224)
  Fix deserialization of pageId. (#3236)
  Further optimize API calls to Commons and Wikidata. (#3227)
  Create constant WikiSite for Commons and Wikidata. (#3230)
  ...

# Conflicts:
#	app/src/main/res/layout/view_page_action_overflow.xml
sharvaniharan added a commit that referenced this pull request Apr 6, 2022
* main: (39 commits)
  Fix updating of reading lists after renaming. (#3251)
  Update kotlin-gradle-plugin version to 1.6.20 (#3250)
  Fix: update talk page pageTitle after changing the language (#3241)
  Refactor title functions (#3232)
  Disable flaky test of EventPlatformClient. (#3249)
  Prevent possible crash when highlighting text for editing. (#3248)
  Bump version code (#3247)
  Article clicks and Edit history analytics wiring (#3234)
  Change affects to affect (incorrect plural) (#3242)
  Fix improper scrolling/jumping when composing long Talk message. (#3245)
  Fix behavior of article overflow menu in split-screen mode. (#3244)
  Improve OOP logic for analytics events containing state information. (#3240)
  Localisation updates from https://translatewiki.net.
  Convert EventPlatformClient to kotlin. (#3239)
  Localisation updates from https://translatewiki.net.
  Get the updated value of duration in timed events. (#3237)
  Add DAO method to get multiple reading lists. (#3224)
  Fix deserialization of pageId. (#3236)
  Further optimize API calls to Commons and Wikidata. (#3227)
  Create constant WikiSite for Commons and Wikidata. (#3230)
  ...

# Conflicts:
#	app/src/main/java/org/wikipedia/page/PageActivity.kt
#	app/src/main/java/org/wikipedia/views/PageActionOverflowView.kt
#	app/src/main/res/layout/view_page_action_overflow.xml
#	app/src/main/res/values-qq/strings.xml
sharvaniharan added a commit that referenced this pull request Apr 6, 2022
* pageToolbarT302397_design: (39 commits)
  Fix updating of reading lists after renaming. (#3251)
  Update kotlin-gradle-plugin version to 1.6.20 (#3250)
  Fix: update talk page pageTitle after changing the language (#3241)
  Refactor title functions (#3232)
  Disable flaky test of EventPlatformClient. (#3249)
  Prevent possible crash when highlighting text for editing. (#3248)
  Bump version code (#3247)
  Article clicks and Edit history analytics wiring (#3234)
  Change affects to affect (incorrect plural) (#3242)
  Fix improper scrolling/jumping when composing long Talk message. (#3245)
  Fix behavior of article overflow menu in split-screen mode. (#3244)
  Improve OOP logic for analytics events containing state information. (#3240)
  Localisation updates from https://translatewiki.net.
  Convert EventPlatformClient to kotlin. (#3239)
  Localisation updates from https://translatewiki.net.
  Get the updated value of duration in timed events. (#3237)
  Add DAO method to get multiple reading lists. (#3224)
  Fix deserialization of pageId. (#3236)
  Further optimize API calls to Commons and Wikidata. (#3227)
  Create constant WikiSite for Commons and Wikidata. (#3230)
  ...

# Conflicts:
#	app/src/main/res/values-fr/strings.xml
#	app/src/main/res/values-ja/strings.xml
#	app/src/main/res/values-qq/strings.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants