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
Variable Typo in Block Editor #25591
Labels
Comments
Closed
Closed
Closed
Let's check if this fix is ok or needs work. |
Closed
fmontes
pushed a commit
that referenced
this issue
Sep 11, 2023
…26025) * Jdcmsd char count fixes (#25780) * Issue 25661 add an attribute to each and every piece of json that conforms the cli bundle (#25731) * #25661 Add dotCMSObjectType field to language, content type and site models Added a "dotCMSObjectType" field to the language, content type, and site models in the project to get better clarity. Additionally, new tests have been added to LanguageCommandTest, ContentTypeCommandTest, and SiteCommandTest. These tests ensure that the "dotCMSObjectType" field is present in the JSON and YAML files generated when the pull command is executed for languages, content types, and sites respectively. This addition helps in identifying the object type when reviewing the JSON or YAML files, improving maintainability and understandability of the codes and files. * #25661 Refactor ContentType class: "TYPE" made final * #25661 Added a JsonProperty to ContentType class * #25661 Added JsonViews and JsonProperty to handle JSON serialization. This commit introduces JsonViews in AbstractLanguage, ContentType, and AbstractSiteView classes. This helps manage different JSON views and control serialization for different use cases. A JsonProperty "dotCMSObjectType" has been added to the ContentType class. Test cases for Content Type, Site and Language have been updated to include a command to push the changes back to the server, ensuring the structure is still correct. New functionalities for creating and updating language and content type have been provided with the ExternalView of Json, adding more security to the API calls. The CommonViews class has been added to handle different views for JSON serialization. This change enhances the control over data visibility in different scenarios. * #25661 Cleanup --------- Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> * Update dot-block-editor.component.ts * Update dot-content-compare-block-editor.component.spec.ts * Update TestDataUtils.java * Update StoryBlockAPITest.java * Update FolderAPITest.java * Update ContentletIndexAPIImplTest.java --------- Co-authored-by: Jonathan Gamba <jonathan.gamba@dotcms.com> Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> * dev (block editor): build --------- Co-authored-by: Jamie Mauro <102264829+jdcmsd@users.noreply.github.com> Co-authored-by: Jonathan Gamba <jonathan.gamba@dotcms.com> Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com>
INTERNAL QA: PASSED
If you save a Contentlet with a Block Editor field and check the payload in the POST request, you can see that the property is called |
manuelrojas
pushed a commit
that referenced
this issue
Sep 12, 2023
…26025) * Jdcmsd char count fixes (#25780) * Issue 25661 add an attribute to each and every piece of json that conforms the cli bundle (#25731) * #25661 Add dotCMSObjectType field to language, content type and site models Added a "dotCMSObjectType" field to the language, content type, and site models in the project to get better clarity. Additionally, new tests have been added to LanguageCommandTest, ContentTypeCommandTest, and SiteCommandTest. These tests ensure that the "dotCMSObjectType" field is present in the JSON and YAML files generated when the pull command is executed for languages, content types, and sites respectively. This addition helps in identifying the object type when reviewing the JSON or YAML files, improving maintainability and understandability of the codes and files. * #25661 Refactor ContentType class: "TYPE" made final * #25661 Added a JsonProperty to ContentType class * #25661 Added JsonViews and JsonProperty to handle JSON serialization. This commit introduces JsonViews in AbstractLanguage, ContentType, and AbstractSiteView classes. This helps manage different JSON views and control serialization for different use cases. A JsonProperty "dotCMSObjectType" has been added to the ContentType class. Test cases for Content Type, Site and Language have been updated to include a command to push the changes back to the server, ensuring the structure is still correct. New functionalities for creating and updating language and content type have been provided with the ExternalView of Json, adding more security to the API calls. The CommonViews class has been added to handle different views for JSON serialization. This change enhances the control over data visibility in different scenarios. * #25661 Cleanup --------- Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> * Update dot-block-editor.component.ts * Update dot-content-compare-block-editor.component.spec.ts * Update TestDataUtils.java * Update StoryBlockAPITest.java * Update FolderAPITest.java * Update ContentletIndexAPIImplTest.java --------- Co-authored-by: Jonathan Gamba <jonathan.gamba@dotcms.com> Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> * dev (block editor): build --------- Co-authored-by: Jamie Mauro <102264829+jdcmsd@users.noreply.github.com> Co-authored-by: Jonathan Gamba <jonathan.gamba@dotcms.com> Co-authored-by: Nollymar Longa <nollymar.longa@dotcms.com> Co-authored-by: Jose Castro <jose.castro@dotcms.com>
Approved: Tested on master_658e1bc_SNAPSHOT, Docker, macOS 13.0, FF v113.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Problem Statement
The word count and character count variables that currently appear in the Block Editor are, respectively,
wordCount
andchartCount
. I think the second one should probably becharCount
.I made a PR to rectify it: #25589
However, I'm just opening up this Issue in case there's discussion needed re: the existing
chartCount
variables in the existing Block Editors out in the wild. Does something like this require a UT? Is it reasonable to believe it will correct itself over time?I'll include a minor breaking change entry in the following release notes, too, in case anyone has done any development using that data.
Steps to Reproduce
N/A
Acceptance Criteria
Just making sure that there are no dangers or snags.
dotCMS Version
22.12 - 23.07
Proposed Objective
Technical User Experience
Proposed Priority
Priority 4 - Trivial
The text was updated successfully, but these errors were encountered: