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

Editor: Make the AddTerm Component more reusable (revert the revert) #8644

Merged
merged 2 commits into from
Oct 12, 2016

Conversation

youknowriad
Copy link
Contributor

I had to revert this PR here because of a prod breakage #8588

Here is the revert PR: #8643

The editor was breaking if we did not have a local cache (we did not load the taxonomies yet), It should be fixed now (2nd commit here). So make sure to clear all the local cache to test this.

Testing instructions

  • Clear browser's localstorage
  • Create a post
  • Make sure, you don't have any JS errors when opening the editor
  • Add a new category to this post (using the add term modal)
  • Make sure the category is attached to the post

cc @timmyc

@matticbot
Copy link
Contributor

@youknowriad youknowriad added [Feature] Post/Page Editor The editor for editing posts and pages. [Type] Enhancement and removed [Status] In Progress labels Oct 11, 2016
@youknowriad youknowriad self-assigned this Oct 11, 2016
@youknowriad youknowriad added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 11, 2016
@timmyc
Copy link
Contributor

timmyc commented Oct 11, 2016

Tested with an empty localStore and IndexDB - lets give this one another try 👍

@timmyc timmyc added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Oct 11, 2016
const labels = get( getPostTypeTaxonomy( state, siteId, postType, taxonomy ), 'labels', {} );
const taxonomyDetails = getPostTypeTaxonomy( state, siteId, postType, taxonomy );
const labels = get( taxonomyDetails, 'labels', {} );
const isHierarchical = get( taxonomyDetails, 'hierarchical', false );
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants