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

CiviCRM API v4 compatibility #126

Merged
merged 6 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ jobs:
with:
chromedriver-version: 119.0.6045.105

- name: List Chrome
shell: "bash"
run: apt list --installed | grep chrome

- name: Remove Chrome
shell: "bash"
run: sudo apt remove google-chrome-stable

- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 119.0.6045.105

- name: Setup & create Database
run: |
bundle exec rails db:create db:schema:load
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GIT

GIT
remote: https://github.com/Platoniq/decidim-module-civicrm
revision: fcfe186e5ff56d9fb7d58b5754c4bff66db075c4
revision: a62627b3658cf8adb2cb100041520731a6f672a1
specs:
decidim-civicrm (0.27.3)
decidim-admin (~> 0.27.3)
Expand Down
3 changes: 2 additions & 1 deletion config/initializers/civicrm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
config.api = {
key: Rails.application.secrets.dig(:civicrm, :api, :key),
secret: Rails.application.secrets.dig(:civicrm, :api, :secret),
url: Rails.application.secrets.dig(:civicrm, :api, :url)
url: Rails.application.secrets.dig(:civicrm, :api, :url),
version: Rails.application.secrets.dig(:civicrm, :api, :version)
}

# Configure omniauth secrets
Expand Down
3 changes: 3 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ default: &default
url: <%= ENV["CIVICRM_VERIFICATION_URL"] %>
key: <%= ENV["CIVICRM_VERIFICATION_API_KEY"] %>
secret: <%= ENV["CIVICRM_VERIFICATION_SECRET"] %>
version: <%= ENV["CIVICRM_API_VERSION"] %>
auto_sync_groups: [ 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 40, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149 ]
private_processes:
- slug: inscrites-alt-pirineu
Expand Down Expand Up @@ -321,6 +322,7 @@ development:
url: <%= ENV["CIVICRM_VERIFICATION_URL"] %>
key: <%= ENV["CIVICRM_VERIFICATION_API_KEY"] %>
secret: <%= ENV["CIVICRM_VERIFICATION_SECRET"] %>
version: <%= ENV["CIVICRM_API_VERSION"] %>
auto_sync_groups: [40]
private_processes:
- slug: inscrites-alt-pirineu
Expand Down Expand Up @@ -360,6 +362,7 @@ test:
url: https://api.base
key: api-key
secret: secret
version: V3
elections:
<<: *elections_default
bulletin_board_server: <%= Decidim::Env.new("ELECTIONS_BULLETIN_BOARD_SERVER", 'http://bulletin-board.lvh.me:5017/api').to_s %>
Expand Down
Loading