Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#44952 closed defect (bug) (fixed)

Export and Erase personal data statuses missing label_count

Reported by: eArtboard Owned by: desrosj
Priority: normal Milestone: 5.1
Component: Privacy Version: 4.9.6
Severity: normal Keywords: has-patch has-screenshots
Cc: Focuses: ui, administration

Description

All registered statuses for Export and Erase personal data pages are missing the label_count parameter.

Attachments (5)

user.php​ (49.2 KB ) - added by eArtboard 8 years ago.
post.php​ (215.2 KB ) - added by eArtboard 8 years ago.
44952.diff​ (3.4 KB ) - added by pratikkry 8 years ago.
converted @eArtboard patch into proper diff format
Screen Shot 2019-01-12 at 2.14.01 AM.png​ (66.0 KB ) - added by garrett-eclipse 8 years ago.
Working counts #1
Screen Shot 2019-01-12 at 2.14.28 AM.png​ (67.3 KB ) - added by garrett-eclipse 8 years ago.
Working counts test #2

Download all attachments as: .zip

Change History (22)

#1 @SergeyBiryukov
8 years ago

  • Component Administration → Privacy
  • Focuses administration added

#2 @birgire
8 years ago

  • Keywords needs-patch added
  • Version 4.9.8 → 4.9.6

Thanks for the ticket @eArtboard

The status labels are displayed above the privacy requests tables, so this seems to be needed.

This seems to be missing in create_initial_post_types():

https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-includes/post.php#L284

for request-completed, request-confirmed, request-failed and request-pending.

The WP_Privacy_Requests_Table::get_views() needs to adjusted as well to support this.

@eArtboard Have you considered writing a patch?

#3 @eArtboard
8 years ago

  • Keywords has-patch 2nd-opinion added; needs-patch removed

This is my first attempt to resolve a ticket. I have uploaded the related files with the changes.

#4 @birgire
8 years ago

Thanks @eArtboard congratulation with your first ticket patch

The patch should contain the file difference (diff), not the whole file.

Hope this helps:

​https://make.wordpress.org/core/handbook/contribute/
​https://make.wordpress.org/core/handbook/tutorials/working-with-patches/

Last edited 8 years ago by birgire (previous) (diff)

#5 @garrett-eclipse
8 years ago

  • Keywords needs-patch needs-refresh added; has-patch removed

This ticket was mentioned in ​Slack in #core-privacy by desrosj. ​View the logs.


8 years ago

#7 @desrosj
8 years ago

  • Keywords has-patch added; 2nd-opinion needs-patch removed
  • Milestone Awaiting Review → 5.1

@eArtboard Are you able to create a proper patch for these changes? If you want to and are still having issues after reading through the links @birgire provided, you are welcome to ping me on Slack.

#8 @eArtboard
8 years ago

I am very busy this period. I will take a look how can I create a proper patch when I have some free time. Or maybe someone else want to create the patch.

@pratikkry
8 years ago

converted @eArtboard patch into proper diff format

#9 @pratikkry
8 years ago

  • Keywords needs-testing added; needs-refresh removed

#10 @desrosj
8 years ago

  • Owner set to desrosj
  • Status new → reviewing

#11 @garrett-eclipse
8 years ago

  • Keywords has-screenshots added; needs-testing removed

Thanks @eArtboard & @pratikkry for working on this.

The patch applies cleaning and functions nicely for both Erasure and Export tables. Uploading screenshots.

@desrosj this looks good to commit.

This ticket was mentioned in ​Slack in #core-privacy by desrosj. ​View the logs.


8 years ago

This ticket was mentioned in ​Slack in #core-privacy by desrosj. ​View the logs.


8 years ago

#14 @garrett-eclipse
8 years ago

  • Keywords commit added

This ticket was mentioned in ​Slack in #core-privacy by desrosj. ​View the logs.


8 years ago

#16 @desrosj
8 years ago

  • Keywords commit removed
  • Resolution → fixed
  • Status reviewing → closed

This was fixed in [44668] (sorry for the typo).

#17 @ocean90
8 years ago

In 44708:

Privacy: Use label_count property of post status for request counts in the list table views.

See #44952.
Fixes #46112.

Note: See TracTickets for help on using tickets.