Problem/Motivation

First noticed by @alexpott in #3072076-55: JSON:API returns a CacheableResponseInterface instance for non-cacheable methods; causes unnecessary exceptions., the JSON:API module has many @see links (and similar) that are still targeting JSON:API issue in the contrib project. They need to point to Drupal core issues (and those issue may need to be moved to the core queue).

Proposed resolution

Identify and update the links in the codebase and convert all contrib-only issues to Drupal core issues.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

n/a

Comments

gabesullice created an issue. See original summary.

gabesullice’s picture

Crediting @alexpott for identifying this issue.

gabesullice’s picture

Issue tags: +Novice
rpayanm’s picture

Assigned: Unassigned » rpayanm

Hi,

I'll search by "https://www.drupal.org/project/jsonapi/" and I'll change to the correct url (Drupal core issue).

rpayanm’s picture

Assigned: rpayanm » Unassigned
Status: Active » Needs review
StatusFileSize
new89.43 KB

I moved all issues in the @see section from jsonapi project to Drupal core.

I don't know why this didn't change the url:
https://www.drupal.org/project/jsonapi/issues/2922121

ilgnerfagundes’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new190.82 KB
new209.85 KB

For me the links are correct

gabesullice’s picture

Status: Reviewed & tested by the community » Needs work

It looks like the patch no longer applies. @rpayanm, can you roll a new one?

suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new84.8 KB

Here is a new patch.

rpayanm’s picture

StatusFileSize
new89.43 KB
rpayanm’s picture

StatusFileSize
new89.44 KB

I had to add --binary option when I created the patch.

rkbrasse’s picture

Status: Needs review » Reviewed & tested by the community

The patch applied with no issues. To test, I searched core for the string "project/jsonapi/issues," and there were none present. I also verified several of the replacements now pointed to core/issues.

tolu_’s picture

nice

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

xjm’s picture

Version: 9.1.x-dev » 8.8.x-dev
Status: Reviewed & tested by the community » Needs work

This doesn't apply to 9.1.x, so we need a 9.x version.

I reviewed the 8.9.x version of #11 locally with git diff --color-words and it all looks good!

As a docs fix, this is backportable as far as 8.8. (Use the "test with" select field next to the upload button for each respective branch's patch.)

suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new87.85 KB

Patch for 9.1.x version. Please review.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

bbrala’s picture

Status: Needs review » Needs work

Thought i go through the reroll but onfortunately there were a few lines you forgot.

  1. core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php
  2. core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php line 176

Small changes :)

suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new89.22 KB
new1.07 KB

Updated as mention in #18. Please review!

bbrala’s picture

Status: Needs review » Reviewed & tested by the community

The patch for 9.1 is good like this, well done!

Committer; the 8.9.x patch does need to be the specific one since there is one file that doesn't exist in 9.1.x (Drupal\Tests\jsonapi\Functional\Update\ReadOnlyModeUpdateTest). Don't be fooled by the test on #19.

catch’s picture

Version: 8.9.x-dev » 9.0.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 9.1.x and 9.0.x

This is eligible for backport to 8.9.x, but the patch in #11 no longer applies. Going to mark this fixed, but feel free to re-open with an 8.9.x re-roll.

  • catch committed 8aa82d8 on 9.1.x
    Issue #3122113 by Suresh Prabhu Parkala, rpayanm, ilgnerfagundes,...

  • catch committed d6a3115 on 9.0.x
    Issue #3122113 by Suresh Prabhu Parkala, rpayanm, ilgnerfagundes,...
bbrala’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new2.53 KB
new90.26 KB

@catch I've rerolled the 8.9.x patch.

catch’s picture

Version: 9.0.x-dev » 8.9.x-dev

  • catch committed a8ec557 on 8.9.x
    Issue #3122113 by Suresh Prabhu Parkala, rpayanm, bbrala, ilgnerfagundes...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed a8ec557 and pushed to 8.9.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.