Closed (fixed)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2015 at 13:04 UTC
Updated:
13 Feb 2015 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anushka-mp commentedComment #2
miro_dietikerComment #3
miro_dietikerPromoting as discussed in #2401019: Enable commented out tests in 8.x-1.x
Comment #4
miro_dietikerDon't forget to add exposed filters to the admin view.
Due to the subscriber view with subscription relationships the exposed subscription filters might be quite a bit of work.
We can also make advanced exposed filter a followup. But they should be defined before closing this issue.
Comment #5
miro_dietikerPreferred filters:
- Published status
- Newsletter
- Send status
Comment #6
miro_dietikerWe should create a view header plugin that checks for newsletters. If one newsletter is sending, we should display an info message on how to stop.
Or we can also just add a visual emphasis and possibly extend the operations?
Problem is: All send status, send and stop sending are on the same tab.
See also the operations issue: #2413931: Admin UI: Newsletter issue operations
Comment #7
berdirSounds like an interesting idea, but follow-up material :)
I started adding views integration to polls recently (#2409887: Views integration) and would suggest a similar approach as I started with there:
1. Add the default entity views data handler to subscribers and build an initial version of the subscriber and issue UI, disable whatever views hooks we currently still implement.
2. Identify missing functionality, check if there are core issues that would improve/provide them (e.g. the links issue that I linked in the poll issue)
3. Push the core issues and whatever custom integration (data definitions and plugins) that we need.
4. Drop the old code that we no longer need, enable tests that are curently disabled for those views.
That can happen in the same issue (except some additioal features that are not critical functionality like the header idea above) but I think we should split subscribers and issues up, they will hardly have anything in common.
Comment #8
miro_dietikerChanging title, reducing to subscriber view.
Split off part: #2413995: Replace newsletter issue overview with views
Comment #9
Anushka-mp commentedSubscriber view added and the iews.views.subscribers added.
first attempt, providing for feedback.
Comment #11
Anushka-mp commentedScreenshots added both d7 and d8,
filters and operations are yet to be implemented. awaiting feedback.
Comment #12
Anushka-mp commentedFilter added to filter the subscribers by mail.
Comment #13
Anushka-mp commentedComment #16
berdirLets depend simplenews on views, at least temporarily, to figure out if there are test fails caused by the switch.
Also search for "@todo Enable these tests again in https://www.drupal.org/node/2401019.", figure out which of those tests apply to the subscriber overview. There are tests for the email filter for example, try to make them work again. Note that views filters use GET, that might be a problem with testing.
Comment #18
Anushka-mp commentedfilter was missing in the earlier patch.
Comment #19
Anushka-mp commentedAs discussed with Berdir,
commented out tests to test subscribers view is now enabled.
Since we don't have the newsletters and operations in the view there will be many failures.
Comment #21
Anushka-mp commentedAs discussed with Miro,
The (individual)operations Edit and Delete added to subscribers view as a drop button.
bulk operations and newsletter filters are yet to be implemented and would be separate issues. I will create them.
awaiting feedback.
Expecting test failures due the test changes (#19)
Comment #23
Anushka-mp commentedThe tests are corrected after the view is added. But there is a one test failure which I could not figure out why.
waiting for some input.
Comment #25
Anushka-mp commentedFinally we have the view with the filters for newsletters, subscriber and subscription status with all the required fields.
Tests are all green locally.
Comment #30
Anushka-mp commentedTests pass locally. One more try.
Comment #34
Anushka-mp commented.DS_Store ruined the patch -_-
Comment #35
miro_dietikerLooks pretty nice. Some small fixes. Will commit when passing again.
Core mentions "Username" in the people view. I guess we should do it exactly the same.
Please check all codestyle.
Comment #36
Anushka-mp commentedCoding style fixes.
Comment #37
Anushka-mp commentedminor fix in doc comment.
"...node entity type" => "...subscriber entity type"
Comment #38
berdirAs discussed, drop the subscriber list builder and then we should be done here.
Comment #39
Anushka-mp commentedSubscriber list builder dropped. routing modified with views.
Comment #40
Anushka-mp commentedSubscriptions field added to the view.
Comment #41
Anushka-mp commentedFilters naming corrected. some minor cleanup.
Comment #45
Anushka-mp commentedInterdiff for the above patch.
Comment #47
berdiruuid needs to be removed.
list builder is not removed?
Add a @todo on the issue you created here with the core problem.
Why is this here? We should fix the fails.
This is wrong, you need to add it to simplenews.info.yml instead.
disabled tests.
Comment #48
Anushka-mp commentedChanges made, dependancy added and views schema updated.
Comment #49
berdirOk, committed and pushed.