Postponing for 8.1.x being open for development.
Problem/Motivation
Working through #2339151: Conditions / context system does not allow for multiple configurable contexts, eg. language types
found that the Translation annotation class was kind of ill-equipped for non-Plugin-class subclasses.
Beta phase evaluation
Issue category | Task because there is no bug and not adding a feature. |
---|---|
Issue priority | Normal because not critical, not major (important by community consesus) and also not minor (not cosmetic), so Normal per https://www.drupal.org/core/issue-priority |
Unfrozen changes | NOT Unfrozen only changes |
Prioritized changes | This is not a prioritized change for the beta phase. |
Disruption | NOT Disruptive for core/contributed and custom modules/themes because it will not require a BC break/deprecation/internal refactoring/widespread changes. It is an API addition |
So unless this reduces fragility...
not allowed in the beta.
but API additions are allowed in 8.1.x, so postponing till that is open for development.
Proposed resolution
The Translation annotation class would work better in this case if it has a __toString() implementation.
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Add automated tests (see comment #3) | novice | Instructions |
User interface changes
No.
API changes
API addition.
Original report by @EclipseGc
Comment | File | Size | Author |
---|---|---|---|
#5 | 2362727-complete.patch | 2.32 KB | wilsonw |
#5 | 2362727-tests.patch | 1.86 KB | wilsonw |
#5 | interdiff-2362727-1-5.txt | 2.32 KB | wilsonw |
#1 | 2362727-1.patch | 471 bytes | EclipseGc |
Comments
Comment #1
EclipseGc CreditAttribution: EclipseGc commentedComment #2
jibranDo you think we should add some tests for this?
Comment #3
dawehnerWe do already have a unit test for that, so adding support for that test is doable, let's mark this as a novice task.
Comment #4
YesCT CreditAttribution: YesCT commentedadding instructions to the summary for the novice task #3 mentioned.
Comment #5
wilsonw CreditAttribution: wilsonw commentedGiving this test a shot! I think I've located the right file, but I'm not sure about my crude implementation. I saw the testGet function and copied and pasted that to get the testToString function. Will read more on test creation; open to feedback and recommended reading links.
Comment #7
YesCT CreditAttribution: YesCT commenteddoing https://www.drupal.org/contributor-tasks/update-allowed-beta
evaluating https://www.drupal.org/contribute/core/beta-changes
removing the novice tag per https://www.drupal.org/core-mentoring/novice-tasks
Comment #8
YesCT CreditAttribution: YesCT commented@wilsonw it can be frustrating to work on something that gets postponed.
bugs are good candidates for during the drupal 8 beta, maybe one of https://www.drupal.org/project/issues/search/drupal?project_issue_follow... will look interesting to you.
... maybe one that needs tests. writing tests is awesome!
https://www.drupal.org/project/issues/search/drupal?project_issue_follow...
Comment #13
andypostComment #14
dawehner@EclipseGc is this still something you want as part of the plugin system?
Comment #15
EclipseGc CreditAttribution: EclipseGc at Acquia commentedIn the 3+ years since I filed this... I've lost track of what I wanted this for and haven't run into it again so, I think I'm going to close it.
Eclipse
Comment #16
andypostThere's still TODO pointing to the issue https://git.drupalcode.org/project/drupal/blob/8.9.x/core/lib/Drupal/Cor...
Comment #24
DavidMV97 CreditAttribution: DavidMV97 at SeeD EM for SeeD EM commentedI understand that the matter may now be considered outdated and possibly resolved; nevertheless, I have tested patch #5, and it has proven effective for me with PHP 8.1 and MariaDB 10.4