-
Notifications
You must be signed in to change notification settings - Fork 1
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
New "Content by owner" View #104
base: 1.x
Are you sure you want to change the base?
Conversation
…gov-content-by-owner plus tab and link
@MariosORION can you check the merge conflict issue here, and I can give it a test then. Thanks. |
@markconroy thanks for reviewing - Conflicts resolved but some tests are failing - do we resolve these on the main repo? |
@MariosORION All tests are passing in the 1.x branch so it's likely that something in the PR is breaking them. Unfortunately, Paratest is not giving a nice error message so the tests will need to be run locally to find what is breaking. If you want a hand looking at this, are you able to run the tests for this module and post error here? This should allow us to debug it. |
@stephen-cox I tried to set up tests to run them locally with no luck. I'll give it another go but if you have any hints on how to configure them locally with PHPStorm feel free to share... |
@MariosORION Are you using Lando or DDev for development? These should both be setup to run tests out of the box. For Lando, you can run PHPUnit tests just for this module with: |
@MariosORION I have run the PHPUnit tests locally and (as I suspected) the errors are due to schema errors on the view configuration. There are a number of these errors
There's also an error coming from the kernel test as the view is in the |
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've made a couple of suggestions that should fix the failing tests.
...les/localgov_workflows_notifications/config/install/views.view.localgov_content_by_owner.yml
Outdated
Show resolved
Hide resolved
...les/localgov_workflows_notifications/config/install/views.view.localgov_content_by_owner.yml
Outdated
Show resolved
Hide resolved
Thanks for reviewing @stephen-cox , I'll put in some time this afternoon to clear this up. |
…emoving time_diff description from View's YML
This now works fine. There are no filters on the view, but there's further discussion on this on the issue, but for this it comes down to whether this is required sooner rather than later. If we want this sooner we can merge this now, but when the filters are ready we will need an update hook to apply them to existing installs. One further thought is the content tasks are now a bit busy and don't look good at medium screen widths Should the link for this be moved under the content task? Do you have thoughts on these things @willguv? |
@stephen-cox @MariosORION I've got a slight change to this. We also need to be vary about calling these contacts "owners" as they don't own the content, just check it So how about:
|
@MariosORION would you be able to address the changes suggested by @willguv in the last comment? |
I'll be working on these @finnlewis @willguv. |
…operation link to service contact entity collection linking to filtered content by owner View based on the View's contextual filter
…operation link to service contact entity collection linking to filtered content by owner View based on the View's contextual filter
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.
@MariosORION This looks to work well for new installs!
@willguv Do we want to add this to existing installs?
From the looks of the code we just need to add an update hook to install the view configuration
@stephen-cox thanks for reviewing! |
Lovely job @MariosORION thanks for doing this @stephen-cox would be great to include for existing installs please |
@MariosORION could you do an update hook for this please? |
@willguv sure, @stephen-cox can you please give the added update hook a go? |
This is for issue #85.
Changes:
I've tested this with a new user, service contact tied to that user and a service page with that service contact assigned; here's how the new View looks like (some columns are sortable just like the vanilla content View):
To add the View when localgov_workflow_notifications is already enabled, Councils can manually import the View's YML configuration (views.view.localgov_content_by_owner.yml) into their site:
views.view.localgov_content_by_owner.yml.zip
Benefits of this approach:
Possible cons of this approach: