-
Notifications
You must be signed in to change notification settings - Fork 33
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
TAN-3815 - Add community monitor survey BE (OLD) #10313
Open
jamesspeake
wants to merge
37
commits into
master
Choose a base branch
from
TAN-3815-community-monitor-hidden-project
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
44aec87
[TAN-3815] Added hidden community monitor project
jamesspeake 1667276
[TAN-3815] Added native_survey_method column
jamesspeake 7924cd0
[TAN-3815] Test fix
jamesspeake 557125b
[TAN-3815] Added DB migration for native_survey_method
jamesspeake dfcf6b3
[TAN-3815] Fixed tests
jamesspeake d1d2b20
[TAN-3815] Added model tests for community_monitor phase
jamesspeake bc4f5b9
[TAN-3815] Rubocop fix
jamesspeake 45860ab
[TAN-3815] Added feature flag
jamesspeake f76c55e
[TAN-3815] Added native_survey_method attribute to phase serializer
jamesspeake 1508955
[TAN-3815] Added native_survey_method attribute to public API, projec…
jamesspeake faa7d76
[TAN-3815] Created native_survey_method classes
jamesspeake 0e2e0b8
[TAN-3815] Fixed feature flag for community monitor phase
jamesspeake bc8cd55
[TAN-3815] Added different form and allowed types for community_monit…
jamesspeake e36b26e
[TAN-3815] Added multilocs to community monitor project creation
jamesspeake 0cf1592
[TAN-3815] Added comment
jamesspeake e519018
Merge branch 'master' into TAN-3815-community-monitor-hidden-project
jamesspeake 7b5bc0e
Merge branch 'master' into TAN-3815-community-monitor-hidden-project
jamesspeake c006832
[TAN-3815] Added form_builder_config attribute to phase
jamesspeake a0d5aa2
[TAN-3815] Removed hidden as a visible_to
jamesspeake 87bd42d
[TAN-3815] Added constraints to community monitor fields
jamesspeake 37a6773
[TAN-3815] Removed private attribute
jamesspeake bd2abdc
[TAN-3815] Added default project_id: nil to community monitor app config
jamesspeake c9b0d4d
[TAN-3815] Moved hidden attribute to admin publication
jamesspeake 92de3fe
[TAN-3815] Removed form_builder_config from API
jamesspeake e6c65d8
[TAN-3815] Fixed tests
jamesspeake ef10676
Merge branch 'master' into TAN-3815-community-monitor-hidden-project
jamesspeake 7af6681
[TAN-3815] Changed permissions for community monitor
jamesspeake f65673c
[TAN-3815] Added outline tests for native_survey_method
jamesspeake 8e88d85
[TAN-3815] Added admin publication tests and fixed other tests
jamesspeake 2aa1064
[TAN-3815] changed check for .present?
jamesspeake a173464
[TAN-3815] Fixed projects spec
jamesspeake 4c529e8
[TAN-3815] Fixed tests
jamesspeake de312c4
[TAN-3815] Exclude native survey responses from creating idea followers
jamesspeake d5746cf
[TAN-3815] Exclude community monitor survey responses from creating p…
jamesspeake 5893bd4
[TAN-3815] Exclude hidden projects from creating followers
jamesspeake dd5cc6e
[TAN-3815] Rubocop fix
jamesspeake 0220682
Merge branch 'master' into TAN-3815-community-monitor-hidden-project
jamesspeake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
back/db/migrate/20250211103910_add_native_survey_method_to_phases.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddNativeSurveyMethodToPhases < ActiveRecord::Migration[7.1] | ||
def change | ||
add_column :phases, :native_survey_method, :string, null: true, default: nil | ||
Phase.where(participation_method: 'native_survey').update_all(native_survey_method: 'standard') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have just used
unless phase.project.hidden?
for this use case but felt there was actually no need to notify on these unless the project was published - draft or archived has no real use