Rework 'View the archive' (admin/config/smsframework/sms_track/view) and user's 'My Message view' (/user/{user}/my-messages), as a builtin view of SMS message entities.

Merge builtin view to an 'optional' config. these configs activate when required modules are installed. see views.view.user_admin_people.yml.

CommentFileSizeAuthor
#9 sms_track____user_relationship_and_sort.png118.03 KBdpi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dpi created an issue. See original summary.

dpi’s picture

I'm thinking to only include the global view. Leaving out the 'My messages' view. It was an issue that users can see confirmation code in the my message view despite not being confirmed yet. Also, was the 'my message' view actually useful?

almaudoh’s picture

I think we should leave in the my messages view. It has been useful in some cases I have used. We can add an option to disable archiving for specific messages (e.g. the message with confirmation code).

dpi’s picture

disable archiving for specific messages

Messages arnt categorized... We have no way to find these kinds of messages.

almaudoh’s picture

Messages arnt categorized... We have no way to find these kinds of messages.

We could have a SmsMessage::setNotArchivable() method which the entity checks before saving, and default it to false.

dpi’s picture

No matter what, the message is added to the queue. There is no concept of not-archiving. Everything is 'archived', and then deleted based on an expiration timer.

If we dont 'archive', then the message isnt sent.

almaudoh’s picture

If we dont 'archive', then the message isnt sent.

Yeah. Hmmmm....

dpi’s picture

We could make the view visible only to administrators... Or instead it may be worth adding an exposed form on the global message list which allows the admin to filter down recipient entities.

dpi’s picture

Actually we cant add it to _the_ global list because the relationship is entity specific. But we can have another global list which features only sms messages of a particular entity type. For example just for 'users':

https://www.drupal.org/files/issues/sms_track____user_relationship_and_sort.png

dpi’s picture

Issue tags: +release-8.x-1.1

Feature addition, no API modification or schema change.

Feature not required for 1.0, but nice to have.