Home

>

Tools

>

Strapi

>

Releases

>

3.0.0-alpha.12.4

Strapi Release: 3.0.0-alpha.12.4

Tag Name: v3.0.0-alpha.12.4

Release Date: 6/13/2018

Strapi LogoStrapi

Open-source headless CMS built with Node.js. Provides developers with complete freedom in choosing their favorite tools and frameworks for frontend development.

TL;DR

Strapi v3.0.0-alpha.12.4 introduces significant enhancements to the content management experience with new features like search functionality, bulk actions, and enumeration support in both the Content Type Builder and GraphQL schema. This release also includes important bug fixes for relations, authentication, and various UI improvements that make the admin interface more intuitive and user-friendly.

Highlight of the Release

    • New search functionality in content manager with support for MySQL, PostgreSQL, and MongoDB
    • Bulk actions for managing multiple content items at once
    • Enumeration type added to content type builder and GraphQL schema
    • OneWay relation type support for Bookshelf ORM
    • Improved content builder UX with better navigation and relation handling

Migration Guide

Upgrading from v3.0.0-alpha.12.3 to v3.0.0-alpha.12.4

  1. Update your dependencies:

    npm install [email protected] [email protected] [email protected] --save
    

    Also update any other Strapi packages you're using to the same version.

  2. Hooks Structure Changes: If you've created custom hooks, ensure they follow the updated structure requirements. The package.json should be in the hook root folder, not within the lib folder. Only index.js should remain in the lib folder.

  3. Search Implementation: If you want to leverage the new search functionality, no additional configuration is needed. The search is available through the UI and via the API using the _q parameter.

  4. Database Indexes: The search functionality automatically creates appropriate indexes for MySQL and PostgreSQL. No manual action is required.

  5. Settings Manager Location: Note that the settings manager has been moved to the configuration section in the admin panel.

Upgrade Recommendations

This release brings significant improvements to content management capabilities and fixes several important bugs. It's recommended for all users to upgrade, especially if you:

  1. Need better content search capabilities
  2. Want to perform bulk operations on content
  3. Need enumeration support in your content types
  4. Use custom authentication providers (fixes default role issues)
  5. Work with complex relations (fixes several relation bugs)

As this is still an alpha release (v3.0.0-alpha.12.4), it's advisable to test thoroughly in a development environment before deploying to production. The changes are substantial but focused on enhancing functionality rather than introducing breaking changes.

Bug Fixes

Framework Fixes

  • Fixed oneWay relation type creation in Bookshelf ORM (#1376)
  • Fixed route count functionality (#1352)
  • Corrected global root path resolution (#1350)
  • Fixed morph relation handling

Plugin Fixes

  • Fixed an issue where deleting info.mainField in content type builder would cause problems (#1369)
  • Resolved default role provider issues for user creation (#1367)
  • Now correctly sets default Role to "authenticated" when using custom providers (#1360)
  • Removed inappropriate filters according to field type (#1346)
  • Fixed a bug when deleting relations that have the same field on both sides (#1342)
  • Updated GraphQL Playground version to fix history bug (#1335)

New Features

Search Functionality

The content manager now includes a powerful search feature that allows users to find content quickly. The implementation includes:

  • Support for MySQL (using text column indexes)
  • Support for PostgreSQL (using GIN indexes)
  • Support for MongoDB
  • Search across text fields with the _q parameter
  • Support for searching boolean and number values

Bulk Actions

Content managers can now perform actions on multiple items at once:

  • Select multiple items with checkboxes
  • Select all items with a single click
  • Delete multiple items simultaneously
  • Update relations for multiple items
  • Custom UI with a dedicated bulk actions menu

Enumeration Type

A new Enumeration field type has been added to the content type builder:

  • Define a list of predefined values for a field
  • Automatically generates into GraphQL schema
  • Custom icon for enum fields in the interface
  • Default name generation if not specified

OneWay Relation Type

Added support for oneWay relation type in Bookshelf ORM, allowing for more flexible data modeling without requiring bidirectional relationships.

Security Updates

No specific security fixes were mentioned in this release.

Performance Improvements

Database Performance

  • Added text column indexing for MySQL to improve search performance
  • Generated GIN indexes for PostgreSQL database to optimize search queries
  • Improved query handling for search functionality across different database types

Build and Testing

  • Updated Travis CI configuration to test against Node.js 9 and 10
  • Improved code structure for better maintainability
  • Refactored GraphQL codebase array functions and removed unnecessary string templates

Impact Summary

Strapi v3.0.0-alpha.12.4 significantly enhances the content management experience with the addition of search functionality, bulk actions, and enumeration support. These features directly improve content manager productivity by enabling faster content discovery and manipulation.

The search feature is particularly impactful as it works across different database types (MySQL, PostgreSQL, MongoDB) with appropriate indexing strategies for each. Content managers can now quickly find content items without scrolling through long lists.

Bulk actions transform how users manage large content sets, allowing operations on multiple items simultaneously rather than one at a time. This dramatically reduces the time needed for common operations like deletion or relation updates.

The addition of enumeration types to both the content builder and GraphQL schema provides developers with more precise data modeling capabilities, ensuring data consistency through predefined value sets.

Several important bug fixes address issues with relations, authentication, and the admin UI, making the system more reliable. The oneWay relation type for Bookshelf adds more flexibility to data modeling.

UI improvements throughout the admin interface, including better form alignment, enhanced content builder navigation, and improved password reset flow, create a more intuitive user experience.

Overall, this release represents a substantial step forward in Strapi's content management capabilities while addressing key pain points reported by the community.

Full Release Notes

🚀 New feature

🐛 Bug fix

💅 Enhancement

Statistics:

File Changed110
Line Additions2,660
Line Deletions800
Line Changes3,460
Total Commits121

User Affected:

  • Can now search through content with the new search functionality in the content manager
  • Can perform bulk actions on multiple content items simultaneously
  • Benefit from improved UX in the content builder interface

Contributors:

johannpinsonsoupettenurikabelauriejimmakzimkoAurelsicokoekamgithanyueiDanielRufderrickmehaffy