Skip to content

Commit

Permalink
Merge pull request #320 from portagenetwork/3.1.0-formal
Browse files Browse the repository at this point in the history
3.1.0 formal release minor fixes for Github Action and Rubocop
  • Loading branch information
pengyin-shan authored Feb 21, 2023
2 parents a2de580 + fe11c0c commit 994d94f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: 'Install MySQL Packages'
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: 'Install Postgresql Packages'
run: |
Expand Down
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ Lint/UnmodifiedReduceAccumulator: # new in 1.1
Enabled: true
Lint/Debugger: # new in 1.45.0
Description: 'Check for debugger calls.'
Enabled: false
Enabled: true
Exclude:
- 'lib/tasks/**/*'

# -----------
# - METRICS -
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@

- Fixed some potential PDF downloading problems

- Updated Github Actions to use specified node version [#319](https://github.com/portagenetwork/roadmap/issues/319)


## [3.0.4+portage-3.0.16] - 2022-12-14

### Changed
Expand Down
1 change: 0 additions & 1 deletion app/models/application_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def postgres_db?

# Generates the appropriate where clause for a JSON field based on the DB type
def safe_json_where_clause(column:, hash_key:)
p mysql_db?
return "(#{column}->>'#{hash_key}' LIKE ?)" if postgres_db?

# return "#{column} LIKE ?)" if maria_db?
Expand Down

0 comments on commit 994d94f

Please sign in to comment.