Skip to content

Using only-parameters for surveys #1378

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

Merged
merged 8 commits into from
Oct 21, 2024
Merged

Using only-parameters for surveys #1378

merged 8 commits into from
Oct 21, 2024

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
@Angamanga Angamanga requested a review from ushahidlee 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...

@Angamanga Angamanga merged commit b9aaa00 into development Oct 21, 2024
10 of 12 checks passed
tuxpiper pushed a commit that referenced this pull request Nov 10, 2024
* Using only-parameters for adding a post

* Using only-parameter for filter-bar for surveys

* Using only-parameters for survey-settings

* Using only-parameters for data-import

* moving strings to helper-file
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