-
Notifications
You must be signed in to change notification settings - Fork 2
Move primary computing glossary page to Strapi #2294
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
Move primary computing glossary page to Strapi #2294
Conversation
bc16167 to
f3d8146
Compare
b6d23b8 to
107e47c
Compare
msquance-stem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a naming change suggestion, and also a fix for lighthouse
app/services/cms/resource.rb
Outdated
| Providers::Strapi::Client.new | ||
| when "graphql" | ||
| Providers::Strapi::GraphqlClient.new | ||
| if Rails.env.test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the old version, it should now just be
Providers::Strapi::GraphqlClient.new
We no longer need to pass the schema
| @@ -0,0 +1,31 @@ | |||
| module Cms | |||
| module Collections | |||
| class PrimaryGlossaryTable < Resource | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should rename this to PrimaryGlossaryTableItems, just to make it clear its separate to the component? I wouldn't bother changing the name on Strapi, just the collection name here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I will update this.
Probably needs a bit of tidying up, but its a working start. Still need to implement all the different grahql queries
…in some extra testing of the older rest features in case we still need them Added some changes to the graphql base query to include generation of filter and sort params. Updated the filter factory to support the rest mode (prepended $ sign) and the graphql mode.
Updated CMS::Resource with all_records method New primary glossary table collection Primary glossary table in Dynamic zone
Added mocks Testing for component Updated schema
Adding tests for all_records
Updated mocks and tests Update Providers::Strapi::GraphqlClient to newer version
e1f5c24 to
94db3f8
Compare
|



Status
Review progress:
What's changed?