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

Fix edit comment when submitting short descriptions. #2305

Merged
merged 3 commits into from Apr 13, 2021

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Apr 13, 2021

The edit comment of suggestededit-add_1.0 was being added incorrectly even when the edit came organically from the article, not just the Suggested Edits feature.

https://phabricator.wikimedia.org/T279702

@sharvaniharan
Copy link
Collaborator

Lgtm @dbrant but I couldn't still understand the root cause... looks like we were doing the same checks before

@@ -233,11 +233,7 @@ class DescriptionEditFragment : Fragment() {
val baseRevId = mwQueryResponse.query()!!.firstPage()!!.revisions()[0].revId
text = updateDescriptionInArticle(text, binding.fragmentDescriptionEditView.description!!)
ServiceFactory.get(wikiSite).postEditSubmit(pageTitle.prefixedText, "0", null,
when (action) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sharvaniharan If you look here, this block does not contain the check for if (invokeSource == InvokeSource.SUGGESTED_EDITS || invokeSource == InvokeSource.FEED), as the others do.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah! ok thank you!

@sharvaniharan sharvaniharan merged commit d47b5e1 into master Apr 13, 2021
@sharvaniharan sharvaniharan deleted the descCommentFix branch April 13, 2021 22:23
cooltey added a commit that referenced this pull request Apr 14, 2021
* imageRecs_design:
  Fix edit comment when submitting short descriptions. (#2305)
  Perform additional check for existence of descriptions. (#2306)
  Update short description capitalization guidance for English. (#2307)
  Bump versionCode (#2304)
  Fix display of numeric Developer Preferences. (#2303)
  Fix adding image caption from lead image. (#2302)
  Fix loading of Main Page via mobile-web call. (#2301)
  Solidify formatting of suggestion reasons.
  Instrument Image Recommendations on MEP (#2290)
  Image Recs: Success illustration (#2287)
  ImgRecs: tooltip textview lineHeight design tweak (#2297)
  set up illustration images for all themes (#2298)
  Fix string.
  Localisation updates from https://translatewiki.net.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants