Problem/Motivation
We need full views integration.
Admin pages and reports should also use views.
Remaining tasks
Basic Views integration has been done.
But admin pages and reports, etc... are not using views yet.
We should convert all reports to views.
List of functions that need to be converted to views:
- referral_admin_view_details()
- referral_admin_view_unflagged()
- referral_admin_view_roles()
- referral_admin_view_summary()
- referral_block_content()
- referral_view() - Default views created. TODO: Test it and if it's OK, redirect referral/view to the views page: 'my-referrals'
User interface changes
If we delete old URLS, and replace them with views, some urls such as ''referral/view" will become unavailable.
Comments
Comment #1
josebc commentedComment #2
qasimzee commentedis it ready?
Comment #3
josebc commentedyou can apply this file against 7.x-1.x-dev
Comment #4
drone.ah commentedpatch applies cleanly and works as advertised...
Is it worth checking if the entity api module is available and passing off the views integration to that since it does all of it fairly automatically...?
Comment #5
josebc commentedwe would still need to add the relations to the views data so i don't think this step will be really important
Comment #6
josebc commentedComment #7
paul.moloney commentedThe patch from #6 is working well for me. It would be good to include flag support too.
Comment #8
mrded commentedI've checked #3 patch and there are a few things I noticed:
Comment #9
mrded commentedPlease, take a look at a new version of the patch. I've also included an example of a view.
Comment #10
mrded commentedComment #11
mrded commentedI'm sorry, @josebc just read you patch more carefully. It makes more sense now. Ignore my previous patch.
Comment #12
mrded commentedPlease take a look new version of a patch.
I've cleaned it up a bit and added an integration with 'flag_timestamp' and 'flag' fields.
Comment #13
mrded commentedJust a few small fixes.
Comment #14
destinationsound commentedA Few things. First of all, #13 works without any issues.
Second, Will this allow me to create a Views Block with the users unique code, so I can place it anywhere on the site? If not, how can i get that option?
Comment #15
josebc commented@mrded , can you please explain what changed from patch in #3?
Comment #16
hejazee commentedI'm working on this module and changing many things.
I will add full views integration for the next release of this module.
Thanks for your patches.
However since the source of this module is being changed significantly, some patches may need re-creation.
Another thing: Why do you add entity hooks for this module in your patches?
It is not necessary for this module to use entities. nor for views integration.
Comment #17
hejazee commentedI have created a new patch with full views integration. This is the same as #13, but with a little modification and also support for other fields and more.
I will push it.
Extended views integration will come soon. (Issue status will still remain "Needs work")
Comment #19
hejazee commentedUpdated issue summary.
Comment #20
hejazee commentedUpdated issue summary
Comment #22
hejazee commentedAdded default view for My referrals page. (Address: my-referrals)
Added a block: a list of my referrals.
Comment #23
socialnicheguru commentedshould this be closed? if so why didn't the system close it?
Comment #24
hejazee commented@SocialNicheGuru, Please see the issue summary.