Skip to content
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 Limesurvey entry triggers database build and redeploy. #6

Closed
ColmMassey opened this issue Mar 5, 2020 · 11 comments
Closed

New Limesurvey entry triggers database build and redeploy. #6

ColmMassey opened this issue Mar 5, 2020 · 11 comments
Assignees

Comments

@ColmMassey
Copy link
Collaborator

Design an implement a method for triggering database rebuilds after approving new survey entries.

@ColmMassey
Copy link
Collaborator Author

Limesurvey

  • Enable email notification to a dedicated address for survey administrators, so they know that a new survey entry has been made.
  • Extend the Limesurvey template to include a hidden boolean question indicating if the submission has been approved yet.

Sausage Factory

  • Add to [first script] to only use entries with a TRUE Approved entry.
  • Periodically, or in response to some other trigger
    • call Limesurvey to see if there have been any updates since last enquiry
      • request export of survey data
      • move csv file to appropriate location
      • call database build and redeploy

@ColmMassey
Copy link
Collaborator Author

ColmMassey commented Mar 5, 2020

What options do we have for a third party, like the person approving new entries to a Limesurvey, to trigger a rebuild, so the rebuild is not periodic but on request?

@wu-lee
Copy link
Contributor

wu-lee commented Apr 26, 2020

* Enable email notification to a dedicated address for survey administrators, so they know that a new survey entry has been made.

According to Lime Survey's manual this can be done, and is configured per-survey. We can use the placeholder {ADMINEMAIL} to send an email to the currently configured admin, or enter an email explicitly.

Should I do this, if so:

  • for which surveys?
  • to which emails?
  • are there any other notification settings which we need?

@ColmMassey
Copy link
Collaborator Author

Should I do this, if so:

An email notification is set up for the Newbridge project.

@wu-lee
Copy link
Contributor

wu-lee commented Apr 27, 2020

You seem to be implying I don't need to change anything with respect to notifications. Right?

@ColmMassey
Copy link
Collaborator Author

Probably worth a voice call.

@wu-lee
Copy link
Contributor

wu-lee commented Apr 27, 2020

Not much time right now; may have time between 10 and 12 if we stick the kids in front of the TV, then busy again with exercise/lunch until about 2. Do any of these slots fit in with you?

@ColmMassey
Copy link
Collaborator Author

A quick call at 10 would be great.

@wu-lee
Copy link
Contributor

wu-lee commented Apr 27, 2020

Sorry, kids didn't want to do that so I got caught up in something else. Feeling slightly wild now. Maybe after 2, let's say 2.15 because children.

@wu-lee
Copy link
Contributor

wu-lee commented Oct 2, 2020

I've asked how to tell when there is new survey response data here:

https://forums.limesurvey.org/forum/can-i-do-this-with-limesurvey/122433-how-to-check-if-a-survey-s-has-new-or-modified-responses-programmatically

The answers which might help all seem to require writing a plug-in for limesurvey, but on our current hosting we can't install 3rd party plugins.

One thing which might still work is a notification email, which could be sent to the server running the autobuild code. I can't see these so I don't know exactly what they contain or when they get sent. @ColmMassey - perhaps you could comment on that? Do the modifications we're interested in result in an email notification?

The only other thing seems to be to inspect the web UI and API more carefully looking for hints. The difficulty seems to be that although limesurvey has a response state signifying "completion", modifications after that will not be visible as any state change.

@ColmMassey
Copy link
Collaborator Author

One thing which might still work is a notification email, which could be sent to the server running the autobuild code. I can't see these so I don't know exactly what they contain or when they get sent. @ColmMassey - perhaps you could comment on that? Do the modifications we're interested in result in an email notification?

The notification is sent when a survey has been submitted, but the admin then needs to approve them. So we'd an email sent after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants