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

docs: add script for unlisting array of forms #714

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Conversation

mantariksh
Copy link
Contributor

Problem

Unlisting several forms at once is a common database operation which can take prohibitively long if there are many (e.g. hundreds) of forms to unlist at once.

Solution

Add a function to our MongoDB scripts which unlists an array of form IDs. Since the forms to unlist are often given as form links and not object IDs, include a parsing step so any string can be passed into the function as an array element, as long as it contains the form ID.

@mantariksh
Copy link
Contributor Author

@syan-syan requesting your review to make sure this fits your needs!

Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mantariksh mantariksh merged commit 7fd378f into develop Nov 24, 2020
@karrui karrui mentioned this pull request Dec 1, 2020
@liangyuanruo liangyuanruo deleted the docs/array-unlist branch January 26, 2021 13:51
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