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

Using only-parameters for surveys #1378

Open
wants to merge 8 commits into
base: development
Choose a base branch
from
Open

Using only-parameters for surveys #1378

wants to merge 8 commits into from

Conversation

Angamanga
Copy link
Contributor

This PR changes to use only-parameters for surveys for:

  • Add post-modal
  • Survey-filters
  • Edit/add surveys in settings (The survey-list)
  • Data import

To test: Smoke-test on above functionalities, they should work as before 😬

Copy link

linear bot commented Oct 15, 2024

@Angamanga Angamanga marked this pull request as ready for review October 15, 2024 06:50
this.getPostAllowedTypes();
private getSurveys(): void {
this.surveysService
.getSurveys('', { only: 'name,color,everyone_can_create,can_create' })
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe the string literal should be in a constant file?

Copy link
Contributor

@ushahidlee ushahidlee left a comment

Choose a reason for hiding this comment

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

Looks good and works nicely. I left a little suggestion but otherwise 👍

@Angamanga
Copy link
Contributor Author

@ushahidlee And done! Moved the strings to the apiHelper, I think that makes sense since they will be the same in the mobile-app probably...

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