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

[WIP][TE-7347] Upgrade rails admin to latest version #6

Closed
wants to merge 408 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
408 commits
Select commit Hold shift + click to select a range
62ea5d2
Merge pull request #3432 from jdufresne/travis
mshibuya Nov 30, 2021
c7f907c
Merge pull request #3434 from jdufresne/perf
mshibuya Nov 30, 2021
ad512c0
💚 Add CodeQL to CI
Nov 29, 2021
7cc7286
🐛 Fix boolean field (#3439)
Dec 2, 2021
d9d47e1
Merge pull request #3438 from RocKhalil/code-ql
mshibuya Dec 3, 2021
a900385
Reflect review
mshibuya Dec 4, 2021
578f3e5
Ensure 'system' can be used as an association name
mshibuya Dec 5, 2021
28cee7f
Merge pull request #3414 from railsadminteam/webpacker
mshibuya Dec 11, 2021
61106b4
Test against Rails 7.0.0.rc1
mshibuya Dec 12, 2021
8b69b3b
Enable js for blinking MultipleCarrierwave field spec
codealchemy Dec 16, 2021
ccd5297
Merge pull request #3448 from codealchemy/blinkers/fix-carrierwave
mshibuya Dec 16, 2021
08f50aa
Fix failing to start when config.eager_load is true
mshibuya Dec 18, 2021
11cb84f
Fix Rails 6.0 incompatibility in 08f50aabc1922aeb289ced4ccbe9f983bc1a…
mshibuya Dec 18, 2021
011b9ae
Test against Rails 7.0.0
mshibuya Dec 18, 2021
71e02bc
Mitigate JRuby CI failures
mshibuya Dec 18, 2021
d51e943
Remove horizontal pagination and always use sidescroll view for list …
mshibuya Dec 19, 2021
cfded2d
Allow installer to append asset_source configuration in case initiali…
mshibuya Dec 20, 2021
84973d7
Version 3.0.0.beta
mshibuya Dec 20, 2021
d2ad520
Fix NameError 'uninitialized constant RailsAdmin::Version' on install
mshibuya Dec 24, 2021
48665ec
Version 3.0.0.beta2
mshibuya Dec 25, 2021
75504d0
Prepopulate modal foreign keys regardless of inverse_of and only for …
mshibuya Dec 25, 2021
8d905f9
Add ability to customize model scope
mshibuya Dec 26, 2021
7cdbe13
Allow hide History in dashboard (#3189)
RodrigoPereyraDiaz Dec 26, 2021
b377106
Follow-up for #3189
mshibuya Dec 26, 2021
d6d380a
Allow customization of model's last created_at in dashboard
mshibuya Dec 26, 2021
e4ef652
Fix build
mshibuya Dec 26, 2021
e65ec93
Lock CI Ruby version to 3.0
mshibuya Jan 2, 2022
da51b91
Fix wrong argument in MainController#respond_to_missing?
mshibuya Jan 5, 2022
4337c1d
Prevent installer spec modifying package.json
mshibuya Jan 8, 2022
0c9f8b3
Use vanilla JS in spec as much as possible
mshibuya Jan 15, 2022
0c7bc61
Remove Sections::List#sort_reverse because of having very limited use…
mshibuya Jan 15, 2022
9cd7541
Prevent write operations based on instance and column's readonly status
mshibuya Jan 16, 2022
cefa23c
Support Mongoid's Storage Field Names
mshibuya Jan 16, 2022
6878670
Upgrade Bootstrap to 5.1.3 with migrating datetimepicker to Flatpickr…
mshibuya Jan 16, 2022
186d080
Stop dynamically importing Flatpickr locales, let users choose what t…
mshibuya Jan 16, 2022
44451f2
Remove JavaScript library jquery-pjax (#3435)
mshibuya Jan 16, 2022
7cbdddd
Add `:bulkable` parameter to `RailsAdmin::MainController#bulk_action`…
Art3606 Jan 22, 2022
95708a5
Failing spec for #3407
mshibuya Jan 22, 2022
82cad9e
Ensure 'format' can be used as an ActiveRecord enum name
mshibuya Jan 23, 2022
ed8602a
Fix inheritance of parent_controller when controllers were eagerly lo…
jalyna Jan 24, 2022
345dda6
Satisfy Rubocop
mshibuya Jan 24, 2022
0e2e0e4
Fix ActiveRecord ObjectExtension has_one setter breaks with custom pr…
mshibuya Jan 29, 2022
8abea83
Allow middleware that extends ActionDispatch::Session::AbstractSecure…
ajkerr Jan 31, 2022
01e4640
Merge pull request #3430 from jdufresne/eol-ruby
mshibuya Feb 5, 2022
28fac73
Mitigate intermittent spec failures in CI
mshibuya Feb 5, 2022
2d4b6ae
Introduce Turbo Drive (#3461)
mshibuya Feb 6, 2022
c757652
Test against Ruby 3.1
mshibuya Feb 6, 2022
4297552
Further mitigation for spec instability
mshibuya Feb 6, 2022
0dfe2e4
Fix failing to detect encoding with JDBC MySQL adapter
mshibuya Feb 6, 2022
4260262
Version 3.0.0.rc
mshibuya Feb 6, 2022
057aa4f
Update repo links: sferik/rails_admin → railsadminteam/rails_admin (#…
jdufresne Feb 7, 2022
9196932
Fix prettier failures in CHANGELOG.md (#3465)
jdufresne Feb 7, 2022
3d7f3b3
Fix custom theme overrides not working
mshibuya Feb 12, 2022
d96def6
Fix connection issues when initializing ActiveRecord Abstract models …
codealchemy Feb 15, 2022
ac0a563
Fix 'Save and add another', 'Save and edit', 'Cancel' buttons didn't …
mshibuya Feb 13, 2022
1f1a478
Add post install message for upgrading 2.x.x -> 3.x.x (#3471)
codealchemy Feb 16, 2022
3771542
Show the warning message if asset_source is not set
mshibuya Feb 19, 2022
3b04a96
Skip addition of the engine route if it already exists
mshibuya Feb 20, 2022
114effc
Fix Webpacker builds
mshibuya Feb 20, 2022
50d34c9
Version 3.0.0.rc2
mshibuya Feb 20, 2022
c749d93
Fix failing to export after introducing Turbo Drive
mshibuya Feb 23, 2022
1fa8486
Fix 'Cancel' button for delete/bulk_delete action also didn't work
mshibuya Feb 23, 2022
f92bdc5
Fix: edit_user_link rendering (#3475)
thedanielhanke Feb 25, 2022
36707ae
Fix layout of scope tabs
coorasse Feb 25, 2022
d370a2a
Fix several RuboCop TODO items (#3478)
jdufresne Feb 27, 2022
7d56cd6
Fix rake tasks executed twice
mshibuya Feb 27, 2022
ee0645f
Remove SimpleCov minimum_coverage
mshibuya Feb 27, 2022
bca3e6a
Merge pull request #3477 from coorasse/patch-4
mshibuya Feb 27, 2022
0d7012c
Follow-up for #3477
mshibuya Feb 27, 2022
3dae7f3
Remove webpack auto detection from the installer
mshibuya Feb 27, 2022
a95b177
Version 3.0.0.rc3
mshibuya Feb 27, 2022
94e599b
Enable frozen string literals across the project (#3483)
jdufresne Feb 27, 2022
b3ccb26
Simplify heredocs with squiggly syntax (#3482)
jdufresne Feb 28, 2022
eb4a185
Fix JS issues when navigating across the main app and RailsAdmin
mshibuya Mar 5, 2022
b6fc3de
Restore functionality of preliminary support for Webpack
mshibuya Mar 6, 2022
2b0594c
Instruct users on potential issues with npm package installation
mshibuya Mar 6, 2022
e38eb46
Apply Pundit 2.2.0 change for Pundit::Authorization
mshibuya Mar 6, 2022
14fbe93
Update #show view (#3491)
codealchemy Mar 10, 2022
c7a74f1
Fix uninitialized constant error
mshibuya Mar 10, 2022
b2265f5
Update #show view (#3491)
codealchemy Mar 10, 2022
040075f
Merge branch '3.0-stable'
mshibuya Mar 10, 2022
837fe71
Fix Rubocop offense
mshibuya Mar 10, 2022
ebc834d
restore full width (#3493)
q3aiml Mar 11, 2022
37158c6
Update vendorized flatpickr to fix localization issue
mshibuya Mar 13, 2022
57b819e
restore full width (#3493)
q3aiml Mar 11, 2022
7f8c831
Update vendorized flatpickr to fix localization issue
mshibuya Mar 13, 2022
b8daa76
Version 3.0.0.rc4
mshibuya Mar 13, 2022
4a583e9
Fix reset button by the query box not working
mshibuya Mar 19, 2022
83a0c88
Fix table sorting not working
mshibuya Mar 19, 2022
bf29870
Fix remaining Pundit deprecation in spec
mshibuya Mar 19, 2022
f5cc427
Version 3.0.0 :rocket:
mshibuya Mar 21, 2022
8dfc51b
Merge branch '3.0-stable'
mshibuya Mar 21, 2022
9c72851
Include npm package version to the bug report template
mshibuya Mar 22, 2022
42d668f
Refactor labels to badges (#3503)
fuegas Apr 5, 2022
e5bb7ba
Fix orderable multiselect buttons (#3506)
aaronlifton Apr 7, 2022
126f7ac
Allow configuration of Navbar css class
mshibuya Apr 25, 2022
7301d9b
Add whitespace after navigation icon (#3504)
fuegas Apr 30, 2022
2bece45
Fix sort by behavior when list.sort_by points to a field that has a s…
aaronlifton May 4, 2022
9959925
Follow-up for #3509
mshibuya May 4, 2022
a3daea9
Update turbo-rails dependency
mshibuya May 4, 2022
4a6524a
Update hover / active behavior for side navigation links (#3511)
codealchemy May 4, 2022
2ee7899
Use status instead of statusText (#3515)
fuegas May 4, 2022
1b8f4c1
Mitigate occasional spec failure
mshibuya May 4, 2022
7cae91a
Mitigate random 'invalid byte sequence in UTF-8' failure
mshibuya May 5, 2022
974c54a
Fix MultipleActiveStorage field deleting attachments in Rails 7.0
mshibuya May 22, 2022
652418c
Upgrade jQuery from 3.5.1 to 3.6.0. (#3524)
gguerini Jun 5, 2022
d1e3334
Support Composite Primary Keys gem (#3527)
mshibuya Jun 11, 2022
ce1bb5a
Fix several typos and spelling errors (#3529)
jdufresne Jun 13, 2022
5fda050
Generate correct user edit url (#3531)
fuegas Jun 19, 2022
4e156ca
Change some specs to cover #3531
mshibuya Jun 19, 2022
e59a935
Support Importmap and revise Webpack support (#3488)
mshibuya Jun 19, 2022
1c72f8a
Version 3.1.0.beta
mshibuya Jun 20, 2022
1cb9284
Upgrade GitHub actions across workflows (#3532)
jdufresne Jun 24, 2022
d1f1154
Fix issues with nested field toggle behavior
mshibuya Jun 25, 2022
c2bf6db
Fix breaking with a habtm association with scope given
mshibuya Jun 26, 2022
32e6b14
Restore the loading indicator back
mshibuya Jun 26, 2022
60e1150
Fix the value of submit buttons being lost on submisison
mshibuya Jun 26, 2022
a2e366e
Improve pagination appearance on smaller screens
mshibuya Jun 26, 2022
0ebbd85
Fix Rubocop deprecation
mshibuya Jul 3, 2022
4609fc6
Adds focus: false to newly created modal dialogs (#3539)
tosbourn Jul 12, 2022
1b3c2fe
Fix YAML-serialized columns following Rails update (#3543)
codealchemy Jul 12, 2022
5d01552
Update CI env var for MAKE
codealchemy Jul 15, 2022
0f5bfa3
Fix dummy_app failing to start with old version of ActiveRecord
mshibuya Jul 17, 2022
8846789
Add a spec for #3539
mshibuya Jul 17, 2022
f84ca1c
Load constants lazily on RailsAdmin initialization (#3541)
mshibuya Jul 18, 2022
ec83444
Add safeguard fot the spec failure
mshibuya Jul 18, 2022
44138c7
Fix dart sass 2.0 division deprecations (#3544)
darrenterhune Jul 23, 2022
e13c7e2
Add support for ActiveStorage direct uploads
mshibuya Jul 30, 2022
3a177c2
Fix vendored Font Awesome not rendered correctly
mshibuya Jul 31, 2022
b9ee7f0
Fix loading indicator appears again on browser back
mshibuya Jul 31, 2022
94f16fb
Add ability to show a help text under the search box
mshibuya Aug 7, 2022
33e9214
Fix #3541 breaking on reload with parent_controller set
mshibuya Aug 12, 2022
e8cb8ed
Make sidebar navigation collapsible
mshibuya Aug 6, 2022
4cc3f30
Fix export action didn't use export section for eager loading
mshibuya Aug 14, 2022
951b708
Add block-style DSL support for extension adapters
mshibuya Aug 14, 2022
a1c4c67
Add ability to set default order of PaperTrail versions
mshibuya Aug 14, 2022
9657774
Support filtering has_one associations
mshibuya Aug 14, 2022
8891c28
Add externalized gem net-smtp to Gemfile
mshibuya Aug 14, 2022
f8219bf
Prevent ES Module processing from affecting non-RailsAdmin assets
mshibuya Aug 23, 2022
a604da5
Fix RailsAdmin widgets not activated after a validation error
mshibuya Aug 26, 2022
fdb9abb
Improve stability of integration specs
mshibuya Aug 28, 2022
be9a75e
Add ability to limit filter operators
mshibuya Sep 3, 2022
2a7a7b0
Further stability improvement on the Flatpickr spec
mshibuya Sep 4, 2022
3cffc00
Fix filtering select widget options being empty on browser back
mshibuya Sep 4, 2022
458d0fb
Load ActionText assets statically to enable full-featured setup
mshibuya Aug 23, 2022
ef76fce
Fix Bootstrap 5.2 compatibility
mshibuya Sep 22, 2022
6cdc107
Version 3.1.0.rc
mshibuya Sep 22, 2022
d7abba4
Fix sidebar style being broken
mshibuya Oct 1, 2022
6042110
Version 3.1.0.rc2
mshibuya Oct 2, 2022
4a8cc9e
Tweak `select` form fields class (#3559)
codealchemy Oct 28, 2022
2a40976
Fix to use defer instead of async to ensure script loading order
mshibuya Nov 4, 2022
bb30377
Version 3.1.0
mshibuya Nov 6, 2022
9997c10
Fix sidebar menu expanding horizontally, preventing vertical scroll
mshibuya Nov 22, 2022
d313a69
Add updated setup instructions for ubuntu and macos (#3569)
pcai Nov 23, 2022
c6b1893
Fix filter box being duplicated on browser back
mshibuya Nov 23, 2022
6d2eece
Lock JRuby version to work around jruby/jruby#7481
mshibuya Nov 26, 2022
4a864aa
Define jQuery object in separate file to support esbuild (#3571)
wayc Dec 3, 2022
aefbca4
Remove unused glphyicon assets (#3578)
jdufresne Dec 5, 2022
2fa86c3
Simplify uses of defined?
jdufresne Dec 5, 2022
0158c81
Remove unnecessary executable bit from Rakefile
jdufresne Dec 5, 2022
3a7f348
Relax Font-Awesome dependency to allow Webpacker users to stay on 5.x
mshibuya Dec 17, 2022
974ac2e
Fix some typos (#3580)
jdufresne Dec 18, 2022
98213b7
Version 3.1.1
mshibuya Dec 18, 2022
1dc696b
Add CI testing for Ruby 3.2 (#3583)
jdufresne Jan 3, 2023
c32b507
Enable RuboCop Style/Encoding and apply auto-fixes (#3585)
jdufresne Jan 3, 2023
fa9a96b
Fix typo: Envinronment ==> Environment (#3586)
jdufresne Jan 3, 2023
e83fb0b
Switch to the safe navigation operator in spec files (#3588)
jdufresne Jan 8, 2023
ede9870
Optimize file path to class name conversion (#3589)
bnix Jan 8, 2023
e8319bc
Update GitHub Actions Badge URL
mshibuya Jan 9, 2023
edd9f24
Restore caching in RailsAdmin::Config::Model#excluded? (#3587)
jdufresne Jan 12, 2023
2ee43de
Change dom_ready event name to use colon as the separator
mshibuya Feb 13, 2023
87c9d5b
Fix to show non-eager-loaded models which are explicitly configured
mshibuya Feb 24, 2023
aca22b6
Fix install failing with importmap setup
mshibuya Mar 22, 2023
33773d7
Postpone introduction of the new event name `rails_admin:dom_ready`
mshibuya Mar 23, 2023
5a958e4
Version 3.1.2
mshibuya Mar 23, 2023
dec5be4
Relax Rubocop Metrics/ClassLength threshold
mshibuya Jun 17, 2023
d7506e7
Fix webpacker build
mshibuya Jun 17, 2023
75a6927
Fix multiple_carrierwave field spec failing due to mocking
mshibuya Jun 17, 2023
2a89ebc
Fix polymorphic association target classes not set correctly in subcl…
mshibuya Jun 17, 2023
923d73e
Add support for '%-l' option to Flatpickr. (#3616)
gguerini Jun 17, 2023
647347c
fix is_blank and is_present filters for uuid columns (#3629)
ozenbusra Jun 17, 2023
f06df8f
Fix Rubocop offense
mshibuya Jul 1, 2023
da48004
Vulnerability fix: validate return_to param using request.host (#3627)
nicoayala Jul 1, 2023
d1859a8
Replace &rdquo; entity with inline <q> element (#3636)
jdufresne Jul 6, 2023
e158beb
Fix typo: tripple ==> triple (#3637)
jdufresne Jul 6, 2023
2379583
Unlock webrick version
mshibuya Jul 31, 2023
5ca8ccb
Revive the live demo
mshibuya Aug 6, 2023
6ab7bd3
Fix Rubocop offense
mshibuya Aug 13, 2023
12715f2
Support client-side dynamic scoping
mshibuya Aug 13, 2023
a8a2584
Basic vite integration attempt (#3643)
bankair Aug 20, 2023
0e12e5b
Follow-up for #3643
mshibuya Aug 20, 2023
13c90fd
Stop using update_only to decide to show subform on create (#3649)
myers Oct 28, 2023
8708722
Resolved a problem with embedded mongoid documents and boolean select…
rpalackas Nov 25, 2023
c042fe5
Follow-up for #3555
mshibuya Nov 25, 2023
c6c17d1
Un-pin turbo-rails to fix Rails 6.1 builds
mshibuya Nov 25, 2023
b78be36
Upgrade node and vite to fix the vite build
mshibuya Nov 25, 2023
68ad436
Mitigate jRuby build failures
mshibuya Nov 26, 2023
9a50b9e
Test against Rails 7.1
mshibuya Nov 27, 2023
cb2edd3
Test against Mongoid 8
mshibuya Nov 28, 2023
5beaf7c
Bump jRuby
mshibuya Nov 28, 2023
5c21878
Tidy up gemfiles
mshibuya Nov 28, 2023
073b809
Make ActiveStorage/ActionText detection less likely to cause false po…
mshibuya Jan 7, 2024
24380d5
Support importmap-rails 2.0
mshibuya Jan 7, 2024
0f29ea8
Test against Ruby 3.3
mshibuya Jan 7, 2024
a31e6d5
Satisfy Rubocop
mshibuya Jan 7, 2024
af7414a
Avoid factory_bot 6.4.5
mshibuya Jan 7, 2024
d520219
Allow turbo-rails 2 in gemspec (#3671)
bb Feb 12, 2024
c6a4036
Fix the build
mshibuya Feb 12, 2024
b8155f8
Quote table_ and column_name for sorting (#3652)
rnestler Feb 26, 2024
9ecfa42
Fix default config path for ImportmapFormatter (#3676)
rnestler Mar 1, 2024
d1ae021
Follow-up for #3652
mshibuya Mar 2, 2024
51d4539
Temporarily lock jRuby to 9.4.5.0
mshibuya Mar 2, 2024
96a0f66
Use released versions of turbo-rails
mshibuya Mar 2, 2024
06c9f5c
Correct meta tags syntax (#3672)
coorasse Mar 2, 2024
5d1582d
Fix Rubocop offense
mshibuya May 18, 2024
c23bc98
Pin sqlite3 to 1.x, as ActiveRecord is not compatible yet
mshibuya May 18, 2024
4e9366f
Fix incompatibility with bson gem 5.0.0
mshibuya May 19, 2024
dba6c4b
Fix error on searching or sorting by ActiveStorage field
mshibuya May 18, 2024
86d8000
Bump CI action versions to reduce Node.js 16 actions deprecation warning
mshibuya May 19, 2024
f1cec36
Lock cancancan to 3.5.x as 3.6 doesn't work in Ruby 2.6
mshibuya Jun 2, 2024
d62f604
Fix enum filter breaking when pre-populated
mshibuya Jun 8, 2024
91737ab
Handle has_one assignment on the field level, making patched has_one …
mshibuya Jun 2, 2024
6399cd9
Fix some typos (#3688)
jdufresne Jun 14, 2024
b9e8161
Tidy up trailing whitespace in gem post_install_message (#3689)
jdufresne Jun 16, 2024
9538f93
Avoid cuprite 0.15.1 to work around JRuby CI failure
mshibuya Jun 16, 2024
a3eac8c
Unlock JRuby version
mshibuya Jun 16, 2024
4e7bd09
Use require_relative to avoid modifying $LOAD_PATH in gemspec (#3690)
jdufresne Jun 17, 2024
32f91e4
Fix XSS vulnerability in the list view
mshibuya Jul 6, 2024
e3e9e8c
Fix 32f91e4 broke fields with HTML tags
mshibuya Jul 9, 2024
34c5fec
Version 3.2.0.beta
mshibuya Jul 13, 2024
afee74e
Remove unused code in Dragonfly field
mshibuya Jul 14, 2024
31e164a
Fix issues in running specs locally
mshibuya Jul 28, 2024
d20b024
Use coverallsapp/github-action@v2 to eliminate Node 16 deprecation wa…
mshibuya Jul 28, 2024
876be11
Introduce SingularAssociation and CollectionAssociation to tidy up th…
mshibuya Jun 17, 2024
5245d5b
Lock jQuery UI version due to API removal in 1.14
mshibuya Aug 18, 2024
53b89c9
ActiveRecord 7.1 composite primary keys support
mshibuya Jun 16, 2024
9ea46b1
Test against Rails 7.2
mshibuya Aug 23, 2024
b666c63
Reset polymorphic id upon type change (#3630)
KMinChrist Aug 25, 2024
13114e5
Follow-up for #3630
mshibuya Aug 25, 2024
35c8702
Detect images properly in FileUpload and MultipleFileUpload field
mshibuya Aug 25, 2024
4417efc
Show a thumbnail of all representable Active Storage files + images (…
wvengen Aug 25, 2024
7754ac3
Follow-up for #3656
mshibuya Aug 25, 2024
7455d26
Version 3.2.0.rc
mshibuya Aug 25, 2024
c0eac2a
Importmap build no longer fails, as new npm package was released
mshibuya Aug 31, 2024
7b2ffb1
Fix polymorphic id doesn't reset properly in an edge case
mshibuya Sep 1, 2024
b4fdd67
Version 3.2.0
mshibuya Sep 8, 2024
195ef0b
Unlock vite/vite-plugin-ruby dependency to fix the vite build
mshibuya Sep 14, 2024
10bf495
Add specs for non-nullable boolean field
mshibuya Sep 21, 2024
586db0c
Avoid turbo-rails versions that are incompatible with Ruby 2.6
mshibuya Sep 21, 2024
e3aec05
Resolve conflict
tim-luong-goldenowl Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**Reproduction steps**
Steps to reproduce the issue seen.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**

- `rails` version:
- `rails_admin` version:
- `rails_admin` npm package version:
- full stack trace (if there's an exception)

Add any other context about the problem here.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: enhancement
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe proposed solution(s)**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here.
37 changes: 37 additions & 0 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: "12 00 * * 5"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["ruby"]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
*.swp
.bundle
.idea/
.vscode/
.rvmrc
.sass-cache
.yardoc
/.emacs.desktop
/gemfiles/*.lock
/node_modules/*
/rails_admin.gems
/spec/generators/tmp
/spec/lib/tmp
/yarn.lock
Gemfile.lock
Gemfile31.lock
coverage/*
db/*.sqlite3
db/*.sqlite3-journal
Expand All @@ -24,9 +27,6 @@ spec/dummy_app/db/*.sqlite3-journal
spec/dummy_app/db/schema.rb
spec/dummy_app/log/*.log
spec/dummy_app/public/uploads
spec/dummy_app/Gemfile.lock
spec/dummy_app/Gemfile*.lock
tmp/**/*
/.emacs.desktop
.idea/*.xml
.sass-cache
nbproject
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage
lib/generators/rails_admin/templates
spec/dummy_app/app/assets/builds
spec/dummy_app/public
spec/dummy_app/tmp
spec/support/jquery.simulate.drag-sortable.js
vendor
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--color
--order=random
--profile
--exclude-pattern 'dummy_app/node_modules/rails_admin/**/*_spec.rb'
181 changes: 156 additions & 25 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,106 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-performance

AllCops:
Exclude:
- 'gemfiles/*'
- 'spec/dummy_app/bin/**/*'
- 'spec/dummy_app/db/schema.rb'
- 'spec/dummy_app/tmp/**/*'
- 'vendor/bundle/**/*'
- "gemfiles/*"
- "node_modules/**/*"
- "spec/dummy_app/bin/**/*"
- "spec/dummy_app/db/schema.rb"
- "spec/dummy_app/node_modules/**/*"
- "spec/dummy_app/tmp/**/*"
- "vendor/bundle/**/*"
NewCops: disable
SuggestExtensions: false
TargetRubyVersion: 2.6

Gemspec/DeprecatedAttributeAssignment:
Enabled: true

Layout/AccessModifierIndentation:
EnforcedStyle: outdent

Layout/DotPosition:
EnforcedStyle: trailing

Layout/LineEndStringConcatenationIndentation:
Enabled: true

Layout/LineLength:
AllowURI: true
Enabled: false

Layout/MultilineAssignmentLayout:
Enabled: true
SupportedTypes: [case, if]

Layout/SpaceBeforeBrackets:
Enabled: true

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/AmbiguousAssignment:
Enabled: true

Lint/AmbiguousRange:
Enabled: true

Lint/DeprecatedConstants:
Enabled: true

Lint/DuplicateBranch:
Enabled: true
IgnoreLiteralBranches: true

Lint/DuplicateRegexpCharacterClassElement:
Enabled: true

Lint/EmptyBlock:
Enabled: true
Exclude:
- "spec/**/*"

Lint/EmptyClass:
Enabled: true
Exclude:
- "spec/**/*"

Lint/EmptyInPattern:
Enabled: true

Lint/LambdaWithoutLiteralBlock:
Enabled: true

Lint/NoReturnInBeginEndBlocks:
Enabled: true

Lint/NumberedParameterAssignment:
Enabled: true

Lint/OrAssignmentToConstant:
Enabled: true

Lint/RedundantDirGlobSort:
Enabled: true

Lint/SymbolConversion:
Enabled: true

Lint/ToEnumArguments:
Enabled: true

Lint/TripleQuotes:
Enabled: true

Lint/UnexpectedBlockArity:
Enabled: true

Lint/UnmodifiedReduceAccumulator:
Enabled: true

Metrics/AbcSize:
Max: 69.98 # TODO: Lower to 15

Expand All @@ -25,69 +109,116 @@ Metrics/BlockNesting:

Metrics/ClassLength:
CountComments: false
Max: 120 # TODO: Lower to 100
Max: 201 # TODO: Lower to 100

Metrics/CyclomaticComplexity:
Max: 12 # TODO: Lower to 6

Metrics/LineLength:
AllowURI: true
Enabled: false
Max: 15 # TODO: Lower to 6

Metrics/MethodLength:
CountComments: false
Max: 29 # TODO: Lower to 15

Metrics/ModuleLength:
Max: 200 # TODO: Lower to 100
Max: 219 # TODO: Lower to 100

Metrics/ParameterLists:
Max: 8 # TODO: Lower to 4
CountKeywordArgs: true

Metrics/PerceivedComplexity:
Max: 14 # TODO: Lower to 7
Max: 17 # TODO: Lower to 7

Naming/FileName:
Exclude:
- 'lib/rails_admin/bootstrap-sass.rb'
- "lib/rails_admin/bootstrap-sass.rb"

Naming/InclusiveLanguage:
Enabled: true

Style/Alias:
Enabled: false

Style/ArgumentsForwarding:
Enabled: true

Style/CollectionCompact:
Enabled: true

Style/CollectionMethods:
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'
map: "collect"
reduce: "inject"
find: "detect"
find_all: "select"

Style/Documentation:
Enabled: false

Style/DocumentDynamicEvalDefinition:
Enabled: false

Style/DoubleNegation:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/Encoding:
Enabled: false
Style/EndlessMethod:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false
Style/HashConversion:
Enabled: true

Style/HashExcept:
Enabled: true

Style/IfWithBooleanLiteralBranches:
Enabled: true

Style/InPatternThen:
Enabled: true

Style/Lambda:
Enabled: false

Style/MultilineInPatternThen:
Enabled: true

Style/NegatedIfElseCondition:
Enabled: true

Style/NumericPredicate:
Enabled: false

Style/NilLambda:
Enabled: true

Style/QuotedSymbols:
Enabled: true

Style/RaiseArgs:
EnforcedStyle: compact

Style/RedundantArgument:
Enabled: true

Style/RedundantParentheses:
Enabled: false

Style/RedundantSelfAssignmentBranch:
Enabled: true

Style/StringChars:
Enabled: true

Style/SwapValues:
Enabled: true

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: 'comma'
EnforcedStyleForMultiline: "comma"

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: 'comma'
EnforcedStyleForMultiline: "comma"

Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: 'comma'
EnforcedStyleForMultiline: "comma"
Loading
Loading