evpp/evpp_utdk3_customizations 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

evpp/evpp_utdk3_customizations

Composer 安装命令:

composer require evpp/evpp_utdk3_customizations

包简介

Customizations for the Office of the Executive Vice President and Provost portfolio of UT Drupal Kit sites

README 文档

README

This Composer packages provides a common set of configuration and customized functionality for EVPP sites based on UT Drupal Kit version 3.

Contents

Setup

  1. Add this package to any UT Drupal Kit 3 site via the following command:
composer require evpp/evpp_utdk3_customizations

This package will be installed to the web/modules/custom/ directory, but should not be committed to version control on individual sites (the default .gitignore should ignore it).

  1. After site installation, enable the evpp_utdk3_customizations module.

Current functionality

Functionality for this package will grow over time. This section lists its current functionality.

  1. Enterprise Login integration (also requires a request to ITS).

Adding new functionality

The base module evpp_utdk3_customizations does not provide functionality on its own. Each additional functional feature should be added as as a sub-module, and installed on new and existing sites. An example follows.

Example: Add a new content type, "Data visualizations"

  1. Spin up a local instance of an EVPP site that uses this package.
  2. Replace the github.com-based 'dist' version of this package with a 'source' based version from Enterprise Github (e.g., delete the directory, then git clone git@github.austin.utexas.edu:evpp-web/evpp_utdk3_customizations.git)
  3. Create a new Git branch for staging the new feature.
  4. In the codebase, add a new sub-module, evpp_content_type_data_visualization in the modules directory of this repository, with a standard .info.yml file and nothing else.
  5. Enable the bare module (drush en evpp_content_type_data_visualization) so that it is registered in the Drupal system.
  6. Use the Drupal UI to create the content type and its fields. Field machine names should be prefixed with evpp to prevent naming collisions. For example, a field for the visualization metadata could be machine-named field_evpp_viz_metadata.
  7. Enable features_ui if it is not already enabled, go to /admin/config/development/features, and click "Create new feature."
  8. Title the feature "Content Type: Data Visualization", with machine name evpp_content_type_data_visualization
  9. Choose the bundle "EVPP Customizations"
  10. Set the path for the configuration to be written to as modules/custom/evpp_utdk3_customizations/evpp_content_type_data_visualization.
  11. From the selection panel on the right, select the node type that you created. You may need to explicitly select the "Field storage" config related to the content type, too.
  12. Export the configuration by pressing "Write." (Verify it is located in the config/install directory of this new sub-module).
  13. Continue to build out the content type by adding any needed templates, libraries, and assets to the module itself.
  14. In evpp_utdk3_customizations.install, add logic to programmatically enable the new module on new and existing sites (i.e., enable it in both the hook_install() implementation and in a new hook_update() function.
  15. Test the workflow by pulling the site's live database (effectively erasing your locally-staged changes) and running drush updb. This should enable the new sub-module, which will install the new content type.
  16. Commit the changes to the branch & push them to Enterprise Github, using whatever internal review process is desired (e.g. pull request).
  17. Once merged into the default branch on Enterprise Github, create a new tag (e.g. 1.1.0) and push that to https://github.com/ut-evpp/evpp_utdk3_customizations . This should automatically update the information on Packagist.

Deploying updates to sites

  1. For all sites that use this repository, you can now receive the pending update via Composer. Assuming the sites are hosted on Pantheon, navigate to each site's dashboard & click "Check for updates." This should detect a new version of evpp/evpp_utdk3_customizations, which you can apply via the dashboard and deploy up to the live environment (the update hook taking care of deploying the actual functionality).

evpp/evpp_utdk3_customizations 适用场景与选型建议

evpp/evpp_utdk3_customizations 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 226 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 evpp/evpp_utdk3_customizations 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 evpp/evpp_utdk3_customizations 我们能提供哪些服务?
定制开发 / 二次开发

基于 evpp/evpp_utdk3_customizations 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 226
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2021-06-02