Closes #3998: Trellis Opportunity Content Type and Importer#5182
Merged
joeparsons merged 81 commits intomainfrom May 7, 2026
Merged
Closes #3998: Trellis Opportunity Content Type and Importer#5182joeparsons merged 81 commits intomainfrom
joeparsons merged 81 commits intomainfrom
Conversation
Creates a base Opportunity content type with 3 display views. Uses Smart Title.
Contributor
Author
|
Review questions:
|
tadean
reviewed
Jan 14, 2026
tadean
reviewed
Jan 14, 2026
joeparsons
reviewed
Jan 23, 2026
Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
It installs properly, but doesn't work. It causes problems with Trellis Event Importer.
Contributor
Author
|
#5274 |
32 tasks
…stall/migrate_plus.migration.az_trellis_opportunities.yml Co-authored-by: Chris Green <chrisgreen@arizona.edu>
trackleft
previously approved these changes
May 6, 2026
joeparsons
reviewed
May 6, 2026
…oller/AZRecurringImportModalController.php Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
joeparsons
reviewed
May 6, 2026
…isHelper.php Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
joeparsons
reviewed
May 6, 2026
…urringImportRuleListBuilder.php Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
…urringImportRuleListBuilder.php Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
trackleft
reviewed
May 6, 2026
…unity_trellis.info.yml Co-authored-by: Chris Green <chrisgreen@arizona.edu>
trackleft
previously approved these changes
May 6, 2026
joeparsons
reviewed
May 6, 2026
…unity_trellis.info.yml Co-authored-by: Joe Parsons <471936+joeparsons@users.noreply.github.com>
trackleft
approved these changes
May 6, 2026
kevdevlu
approved these changes
May 6, 2026
Member
There was a problem hiding this comment.
Tested Tugboat build, successfully
- Searched for the specified first adopters
- Imported all searched results
- Created recurring rules and confirmed that updates happen upon cron run
joeparsons
approved these changes
May 7, 2026
tadean
approved these changes
May 7, 2026
Contributor
|
Retested to verify that a few cases of imports and recurring imports function. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3998: Non-Academic Trellis Programs
Description
Adds a new content type—Opportunities, and an importer for it. Two modules, with Trellis Opportunities embedded within the folder.
Opportunities is used for things like study abroad, research, job opportunities, scholarships and internships.
The second part of this content type is the Trellis Importer. Trellis opportunities are called Programs, which come from Accounts. Similar to the Event Importer, we want Trellis to be able to import content right into Quickstart sites, with links between for ease of use.
----- Follow ups or non-critical updates
Related issues
Closes #3998: Non-Academic Trellis Programs
How to test
Install both
az_opportunityandaz_opportunity_trellisMake sure you have the latest Enterprise Attributes (API was recently updated); otherwise you won't see "Program Type" as an import filter
a. Go to
/admin/config/az-enterprise-attributes-import/settingsand "Save ConfigurationsGo to
/admin/trellis-opportunity-importer, make sure "Program Type" is present.Use these search parameters, as Cameron said our first clients for this module would be. You can search for partial phrases and search for only some of them in the "keyword" parameter. You can also play around with other filters like "Program Type" ("On-Campus Job", "Professional Development", "Mentorship" yield good results)
Import some of these, and test that the node looks good.
Also test the different views (card view, row view, small row view)
Test recurring import.
Search something in the importer (
/admin/trellis-opportunity-importer)If the search returns more than 1 result, the "Create Recurring Import" button will appear
Click on "Create Recurring Import" and the Recurring Search Parameters will pre-fill what you already searched. Make necessary adjustments. Name the import rule and click "Save"
The default recurring import cron migration interval is set at 12 hrs (720 mins), but if you want to test it right away, you can go to Cron migration settings (
/admin/config/migrate_queue_importer/cron_migration). EditQuickstart Trellis Opportunitesand set the interval to 0 minutes.Go to Cron page
/admin/config/system/cron. Use the external link or if you're testing on your local, use drush cron. Clicking on the UI "Run Cron" button won't work—I believe this is intentional.API Testing & Dev API Branches
***CWS Team: this was done already, so don't worry about switching to the dev branch. Skip this step. ***
Opportunities pulls from 3 APIs, 2 are exposed for the editor. One is unique to this PR, the Opportunity API, called Programs in Trellis. The other is the shared Enterprise Attributes, used in multiple content imports and exports. To edit them, Go into Config / Arizona Quickstart Settings, and change both the Opportunity API (imports opportunity content from Trellis), and the Enterprise Attributes (imports attribute taxonomies). Program Type is only visible when it imports correctly.
We'll need to switch to the DEV versions for testing.
--- Config / Arizona Quickstart Settings / Opportunity Importer
Settings
Opportunity Dev API
api.qa.eips.arizona.edu
Opportunity Live API
api.eips.arizona.edu
--- Config / Arizona Quickstart Settings / Enterprise Attributes Importer Settings
Enterprise Dev API
https://api.qa.trellis.arizona.edu/ws/rest/events/v1/enterprise-attributes
Enterprise Live API
https://api.trellis.arizona.edu/ws/rest/events/v1/enterprise-attributes
(You should see over 200 items processed, if you're under the importer didn't work properly, try running it again later).
Postman API testing:
You can use the website PostMan to test the API Data, or any other api testing application, to compare data you see on the site with data as it exists from Trellis.
API 1: The IDs
Using GET, search for this link.
https://api.qa.eips.arizona.edu/ws/rest/programs/v1/searchprogram/
Use Params key "keyword", and value as the search term (put in whatever, i.e. CALES), to get specific content. You should see it appear as a query string in the URL.
"keyword"
API 2: The data from the IDs
Using POST, use this link.
https://api.qa.eips.arizona.edu/ws/rest/programs/v1/programinfo
Then for the data, switch to Body, choose Raw (json), and paste your IDs here, separated by commas.
{ "ids": "a55Kg00000001cGIAQ,a556R000001115mQAA" }
Types of changes
Arizona Quickstart (install profile, custom modules, custom theme)
Drupal core
Drupal contrib projects
Checklist