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

Initialize tables on first load in forms #365

Merged
merged 5 commits into from
Feb 4, 2021
Merged

Conversation

bkamapantula
Copy link
Contributor

@bkamapantula bkamapantula commented Feb 1, 2021

Problem

forms.db and analytics, forms tables need to be created before forms app can be used.

Solution

  • introduce formhandler columns-based table creation for analytics and forms tables
    • downstream impact: update data-source for .formhandler() in form.html
  • disable mouse events while previewing the form at /form/id
    • add a prominent way to View form in addition to a link in navbar

Without this, forms app wouldn't work.

- forms.db and necessary tables (analytics and forms) need to be created before forms app can be used.
- /configure will test for database and table (forms) and create tables (forms, analytics) if necessary.
- scheduler creates database and tables (forms, analytics) on startup.

Without this, forms app wouldn't work.
- remove create_form_tables utility that uses queries
- introduce formhandler columns-based table creation for `analytics` and `forms` tables
  - downstream impact: update data-source for `.formhandler()` in form.html
- disable mouse events while previewing the form at `/form/id`
@bkamapantula
Copy link
Contributor Author

@sanand0 updated the PR, kindly review

@bkamapantula bkamapantula changed the title Initialize forms on app import or on demand Initialize tables on first load in forms Feb 4, 2021
@sanand0 sanand0 merged commit ed8aaff into master Feb 4, 2021
@sanand0 sanand0 deleted the hotfix-1.68-forms branch February 4, 2021 07:14
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

Successfully merging this pull request may close these issues.

2 participants