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

Merge upstream releases v4.0.0, v4.0.1, and v4.0.2 #474

Merged
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
efa9fc6
Updated Ruby version to 2.7.6
benjaminfaure Jun 14, 2022
46b4fc7
Updated Ruby version in github workflow files
benjaminfaure Jun 14, 2022
66a5d66
Rubocoped some files
benjaminfaure Jun 14, 2022
b4e7c10
tweak ruby version designation in gemfile to just specify major.minor…
briri Jun 14, 2022
2502032
ran bundle install and Version: 2.1.1
briri Jun 14, 2022
d54c68a
discovered issue running specs on mysql. new version of mysqld consid…
briri Jun 14, 2022
20e6b0b
finally fixed autocomplete/typeahead helper for specs
briri Jun 14, 2022
2085e7d
rubocop fixes and fix for index names in migration
briri Jun 14, 2022
343b9d0
fix for outdated db schema
briri Jun 14, 2022
1dcf697
Removed case_sensitivity test on region abbreviation as this field is…
benjaminfaure Jun 15, 2022
6096cf7
removed db migration that added unqiueness indexes
briri Jun 15, 2022
b503726
comment out rspec migration step
briri Jun 15, 2022
158cc5a
updated github actions to use the binstubs
briri Jun 15, 2022
110475e
try bundle exec instead of bin/ in github workflows
briri Jun 15, 2022
538e339
readd case_insensitive check to region
briri Jun 15, 2022
6aa7ca2
updates to tests
briri Jun 15, 2022
b7ace8f
Unpegged mimemagic & pegged font-awesome gem to the major version
benjaminfaure Jun 17, 2022
71965be
Replaced turbolinks (no longer maintained) by turbo-rails
benjaminfaure Jun 17, 2022
310359c
Removed zaru gem and replaced it by built in ActiveStorage::Filename#…
benjaminfaure Jun 17, 2022
ac95461
Commented some unused gems
benjaminfaure Jun 17, 2022
f2c71db
query optomizations based on feedback from Bullet
briri Jun 17, 2022
80b2ac0
attempt to fix randomly failing api v1 deserializer test
briri Jun 17, 2022
aeb683c
Updated ESLint to V8 & replace eslint-loaded by eslint-plugin-import
benjaminfaure Jun 20, 2022
cbbb17b
Removed eslint-action as github has now everything to run ESLint
benjaminfaure Jun 20, 2022
695c66a
Fixed eslint action
benjaminfaure Jun 20, 2022
648c805
Fixed eslint action
benjaminfaure Jun 20, 2022
d6904a5
Removed deprecated option from tinymce config
benjaminfaure Jun 20, 2022
b779346
Upgraded jasmine, jasmine-core & karma-jasmine. Fixed one of the auto…
benjaminfaure Jun 20, 2022
c56bca7
DCC Issue 710: The V0 API calls for assign_users and unassign_users to
Jun 20, 2022
e3a37d4
Upgraded chart.js to V3
benjaminfaure Jun 20, 2022
ed74acb
Upgrade js-cookie to V3
benjaminfaure Jun 20, 2022
b605e02
Merge pull request #3190 from DMPRoadmap/dcc_issue_710_assign_users_t…
briri Jun 24, 2022
bcccaeb
replace deprecated 'resolved_paths' with 'additional_paths' in webpac…
briri Jul 3, 2022
5f0c0c9
Merge branch 'rails_6' of github.com:DMPRoadmap/roadmap into rails_6
briri Jul 3, 2022
d6322ef
bumped dependencies
briri Jul 4, 2022
685cd92
added some config setting for babel to deal with warning messages whe…
briri Jul 5, 2022
94304b9
Merge branch 'development' of github.com:DMPRoadmap/roadmap into deve…
briri Jul 8, 2022
e5d8c32
Merge branch 'development' into rails_6
briri Jul 8, 2022
139d45f
updated rubocop rule
briri Jul 8, 2022
9765df0
make rubocop happy
briri Jul 8, 2022
035931a
Merge pull request #3188 from DMPRoadmap/rails_6
briri Jul 8, 2022
7315c5e
testing codepipeline
briri Jul 14, 2022
40489b8
Merge branch 'development' of github.com:DMPRoadmap/roadmap into deve…
briri Jul 14, 2022
ed51d44
change to REAME for codepipeline demo
briri Jul 19, 2022
adc5f07
Bug #3200 - Fix for the V1 API call GET /api/v1/plans returns duplica…
Aug 10, 2022
1ec2278
Merge pull request #3202 from DMPRoadmap/bug_3200_v1_api_call_get_pla…
briri Aug 10, 2022
0304e04
updated dependencies and added brakeman exception for EOL rails
briri Aug 10, 2022
a80483d
make rubocop happy
briri Aug 10, 2022
036f8c7
Merge pull request #3204 from DMPRoadmap/dependency-updates
briri Aug 10, 2022
563b882
Bug #3203 - Fix for download plans docx being malformed if it has
Aug 12, 2022
bb4003e
update to prevent users from being able to make all of their guidance…
briri Aug 15, 2022
49abe59
Merge branch 'master' into development
briri Aug 15, 2022
0cb89ed
Merge branch 'issue3199' into development
briri Aug 15, 2022
9a71eb2
remove ability to delete the only non-optiona_subset guidance group
briri Aug 15, 2022
5f10fd1
Merge branch 'master' into development
briri Aug 15, 2022
d1676d8
updates to prevent deletion of only non-optional subset
briri Aug 15, 2022
b26aef6
Merge branch 'issue3199' into development
briri Aug 15, 2022
edebfc8
tweak to logic when editing guidance_group
briri Aug 15, 2022
e24a2cc
Merge branch 'issue3199' into development
briri Aug 15, 2022
2a109b3
tweak to logic when editing guidance_group
briri Aug 15, 2022
646cd54
Merge branch 'issue3199' into development
briri Aug 15, 2022
7acc298
tweak to logic when editing guidance_group
briri Aug 15, 2022
dcad36f
Merge branch 'issue3199' into development
briri Aug 15, 2022
efc89a2
tweak to logic when editing guidance_group
briri Aug 15, 2022
387e7e6
Merge branch 'issue3199' into development
briri Aug 15, 2022
bbf34d0
added @guidance_groups to update and create so they are available dur…
briri Aug 15, 2022
dbbf88d
Merge branch 'issue3199' into development
briri Aug 15, 2022
04e2aca
pluck with ampersand returns not id
nicolasfranck Aug 30, 2022
5eff207
Merge pull request #3209 from nicolasfranck/development
briri Aug 30, 2022
08853aa
Merge pull request #3207 from DMPRoadmap/bug_3203_error_in_docx_xml_w…
briri Aug 30, 2022
9d5233b
Fixing seeding issue for French translation
Sean-Stilwell Sep 5, 2022
fd57e12
Merge pull request #3210 from Sean-Stilwell/master
briri Sep 6, 2022
273ce4f
updated Identifier model to strip whitespace before appending Ideenti…
briri Sep 26, 2022
22ab9d4
updated fix to first convert the value to string before trying to str…
briri Sep 28, 2022
9154780
some accessibility fixes discovered during audit of dmptool. mostly m…
briri Sep 28, 2022
f0f03c0
Fix for issue #3217 regarding template search feature
gjacob24 Oct 3, 2022
4b2fe7e
Fixed issue with Plan & Template visibilities
benjaminfaure Oct 24, 2022
426cde5
Update gems & js packages
benjaminfaure Oct 24, 2022
87abe8c
Merge pull request #3218 from DMPRoadmap/template_search_issue_3217
briri Oct 24, 2022
e05460d
Merge pull request #3212 from DMPRoadmap/dmptool-issue379
briri Oct 24, 2022
a989193
commented our Capybara.start
pengyin-shan Oct 24, 2022
72181c7
Merge pull request #3224 from DMPRoadmap/fix_Capybara
briri Oct 24, 2022
bb31d64
Merge branch 'development' into fix/plan_visibility
briri Oct 24, 2022
90d489b
Fixed tests by adding default visibility to template & plan test fact…
benjaminfaure Oct 24, 2022
e57640e
Fixed template tests
benjaminfaure Oct 25, 2022
7cf0dc5
Rubocoped everything
benjaminfaure Oct 25, 2022
e7e7ad6
Translation.io new sync for rails6 25/10/2022
Oct 25, 2022
194c5a6
Merge pull request #3223 from benjaminfaure/fix/plan_visibility
briri Oct 25, 2022
68bf79b
Merge pull request #3227 from DMPRoadmap/translation_io_25_10_22
briri Oct 25, 2022
c16f001
Merge pull request #3226 from DMPRoadmap/development
briri Oct 26, 2022
68e914c
Merge pull request #3228 from DMPRoadmap/main
briri Oct 27, 2022
9deb547
Update README.md
briri Oct 27, 2022
cd6fed4
updated bin/setup so that its simpler to install the system
briri Oct 27, 2022
add60e2
removed unused files and reverted schema.rb
briri Oct 27, 2022
5a8ab0b
updated github actions to work with changed sample config files. some…
briri Oct 28, 2022
53fa945
revert some rubocop changes since they were auto-corrected with the w…
briri Oct 28, 2022
51bd0a9
fix YAML safe load capatibility potential error
pengyin-shan Nov 4, 2022
3e5c7c7
move common config setting to application.rb
pengyin-shan Nov 4, 2022
680a680
Merge branch 'development' into accessibility-fixes
briri Nov 7, 2022
6402f59
attempt to make setup work with Windows
briri Nov 8, 2022
77da243
add translation format for feedback notification page
pengyin-shan Nov 14, 2022
edf0b5b
add translation format for at_csv.rb
pengyin-shan Nov 14, 2022
9ac45a3
fix rubocop
pengyin-shan Nov 14, 2022
f338806
update webdriver to 5.2 for a webdriver bug on M-powered Mac
pengyin-shan Nov 14, 2022
acd8fa0
add tranlsation formats for usage section
pengyin-shan Nov 15, 2022
67cd052
move the <p> tag out of translation section
pengyin-shan Nov 15, 2022
d5089f1
Added missing translation for email that lists new user permissions
briri Nov 16, 2022
eaad751
fixed issue with the Org links which was causing save errors
briri Nov 16, 2022
820d21e
switched from db:prepare to db:create
briri Nov 17, 2022
15eb3ae
add popover for org_profile page
pengyin-shan Nov 17, 2022
5fa3d11
update message for public plan definition
pengyin-shan Nov 17, 2022
3e8815e
update csv name for statistics
pengyin-shan Nov 17, 2022
b283674
Created editorconfig file
benjaminfaure Nov 21, 2022
cef8c3c
remove the extra Affiliation row in csv download
pengyin-shan Nov 23, 2022
e0fe690
change github action ubuntu version to ubuntu-20.04 instead of ubuntu…
pengyin-shan Nov 23, 2022
2e6dc4b
fix routes.rb to replace some double quotes with single quotes
pengyin-shan Nov 25, 2022
71d0063
Merge pull request #3248 from DMPRoadmap/fix_3247
pengyin-shan Nov 25, 2022
94c0b32
Merge branch 'development' into accessibility-fixes
briri Nov 28, 2022
8dc8b75
fixed typo in research_outputs view
briri Nov 28, 2022
22e9c64
fixed typo in textarea question view
briri Nov 28, 2022
337b927
Merge pull request #3213 from DMPRoadmap/accessibility-fixes
briri Nov 29, 2022
dc71394
Merge branch 'development' into install-update
briri Nov 29, 2022
57f1649
Merge pull request #3229 from DMPRoadmap/install-update
briri Nov 29, 2022
f2f823e
Merge pull request #3240 from DMPRoadmap/patch-rails6
briri Nov 29, 2022
7e85f10
Merge branch 'development' into fix_double_quotes_routes
briri Nov 29, 2022
42a2b2e
Merge branch 'development' into remove_extra_affiliation
briri Nov 29, 2022
1103d22
Merge branch 'development' into editorconfig
briri Nov 29, 2022
f27bcd4
Merge branch 'development' into statistics_filename_change
briri Nov 29, 2022
d480507
Merge branch 'development' into org_type_tip
briri Nov 29, 2022
3942501
Merge branch 'development' into add_translation
briri Nov 29, 2022
144676d
Merge branch 'development' into add_translation_feedback_notification
briri Nov 29, 2022
227ac57
Merge branch 'development' into webdriver_update
pengyin-shan Nov 29, 2022
4f89e7c
Merge pull request #3236 from DMPRoadmap/webdriver_update
pengyin-shan Nov 29, 2022
1182f63
Merge branch 'development' into remove_extra_affiliation
pengyin-shan Nov 29, 2022
04fdd61
Merge branch 'development' into add_translation
pengyin-shan Nov 29, 2022
3e5a9f2
Merge branch 'development' into add_symbol_to_safe_yaml_list
pengyin-shan Nov 29, 2022
ba2a988
Merge branch 'development' into statistics_filename_change
pengyin-shan Nov 29, 2022
a3323b5
Merge branch 'development' into add_translation_feedback_notification
pengyin-shan Nov 29, 2022
cd49f69
Merge branch 'development' into editorconfig
pengyin-shan Nov 29, 2022
adf977a
Merge branch 'development' into fix_double_quotes_routes
pengyin-shan Nov 29, 2022
270b1b1
Merge pull request #3246 from DMPRoadmap/remove_extra_affiliation
pengyin-shan Nov 29, 2022
3d254a1
Merge branch 'development' into org_type_tip
pengyin-shan Nov 29, 2022
ea02c35
Merge pull request #3234 from DMPRoadmap/add_translation_feedback_not…
pengyin-shan Nov 29, 2022
2092d80
Merge branch 'development' into add_symbol_to_safe_yaml_list
pengyin-shan Nov 29, 2022
cc4af48
Merge pull request #3235 from DMPRoadmap/add_translation
pengyin-shan Nov 29, 2022
ee2b836
Merge pull request #3250 from DMPRoadmap/fix_double_quotes_routes
pengyin-shan Nov 29, 2022
8243935
Merge branch 'development' into editorconfig
pengyin-shan Nov 29, 2022
2277cea
Merge pull request #3243 from benjaminfaure/editorconfig
pengyin-shan Nov 29, 2022
a814d68
Merge pull request #3231 from DMPRoadmap/add_symbol_to_safe_yaml_list
pengyin-shan Nov 29, 2022
c6e68cc
bundle, yarn update and translation.io update
pengyin-shan Nov 30, 2022
a3b3a4c
fix rubocop
pengyin-shan Nov 30, 2022
f2d8824
Merge pull request #3251 from DMPRoadmap/pre-4.0.1-release
pengyin-shan Nov 30, 2022
47a3029
Merge branch 'main' into development
pengyin-shan Nov 30, 2022
a803f43
Merge pull request #3252 from DMPRoadmap/development
pengyin-shan Dec 1, 2022
1feb31b
Froze mail gem version
benjaminfaure Dec 6, 2022
c759ba1
Added scss files to editorconfig
benjaminfaure Dec 6, 2022
9387356
test CHANGELOG file
pengyin-shan Dec 6, 2022
8a441a4
update danger in gemfile
pengyin-shan Dec 6, 2022
c5b88e6
add danger figuration
pengyin-shan Dec 6, 2022
157a0d9
fix rubocop
pengyin-shan Dec 6, 2022
0320a29
Rubocoped Gemfile
benjaminfaure Dec 8, 2022
439d642
fix test folder name
pengyin-shan Dec 8, 2022
aeba6b5
Merge pull request #3258 from DMPRoadmap/changelog_danger
pengyin-shan Dec 8, 2022
b72e34d
sync translation again and update Danger file
pengyin-shan Dec 9, 2022
9cf7dbd
use failure instead of fail to aovid rubocop complain
pengyin-shan Dec 9, 2022
bdb07f2
add exception message for translation.io changes
pengyin-shan Dec 9, 2022
3f64a77
fix Dangerfile
pengyin-shan Dec 9, 2022
482f355
test CHANGELOG file
pengyin-shan Dec 6, 2022
eeab22e
update danger in gemfile
pengyin-shan Dec 6, 2022
2e761b5
add danger figuration
pengyin-shan Dec 6, 2022
e7231ab
fix rubocop
pengyin-shan Dec 6, 2022
f6a13bd
fix test folder name
pengyin-shan Dec 8, 2022
54797da
Updated CHANGELOG
benjaminfaure Dec 12, 2022
35bd57a
Merge branch 'development' into issue3254
benjaminfaure Dec 12, 2022
e2fb1f5
Merge branch 'development' into add_scss_to_editorconfig
briri Dec 13, 2022
66cb809
Merge pull request #3263 from DMPRoadmap/translation_sync_dangerfile_…
pengyin-shan Dec 13, 2022
951bae2
Updated CHANGELOG
benjaminfaure Dec 14, 2022
fe49376
Merge branch 'development' into issue3254
briri Dec 14, 2022
2572363
added validation with error message when user enters very large value…
gjacob24 Jan 9, 2023
b8cc5ab
edited CHANGELOG.md to add details of the previous PR
gjacob24 Jan 9, 2023
e861efb
added research outputs to the CSV download of the plan
briri Jan 9, 2023
9cfce0d
updated JS that interacts with TinyMCE so that it stops using depreca…
briri Jan 9, 2023
44667f8
updated changelog
briri Jan 10, 2023
f089114
updated changelog
briri Jan 10, 2023
d104060
fix to properly use max per page settings
briri Jan 11, 2023
ffbe90c
added changelog entry
briri Jan 11, 2023
d6ee0ff
updated api v0 to use max_pages config value for api
briri Jan 23, 2023
6bb36e8
Merge branch 'development' into org_type_tip
briri Jan 23, 2023
16c2f27
Updated PDF font selector to use Roboto instead of Helvetica since Go…
briri Jan 23, 2023
85063e0
Merge branch 'development' into add_scss_to_editorconfig
benjaminfaure Jan 24, 2023
9f55ff5
Merge pull request #3275 from DMPRoadmap/research_output_file_size_issue
benjaminfaure Jan 24, 2023
afe989e
Merge pull request #3276 from DMPRoadmap/tinymce-update
benjaminfaure Jan 24, 2023
dfe09ee
Merge branch 'development' into research-outputs-csv
benjaminfaure Jan 24, 2023
b9b21f6
Merge branch 'development' into issue3254
benjaminfaure Jan 24, 2023
d0c1ecc
Merge pull request #3256 from benjaminfaure/add_scss_to_editorconfig
benjaminfaure Jan 24, 2023
0fc240e
Merge pull request #3242 from DMPRoadmap/statistics_filename_change
benjaminfaure Jan 24, 2023
70ecdf1
Merge pull request #3241 from DMPRoadmap/org_type_tip
benjaminfaure Jan 24, 2023
68ac8a7
Update CHANGELOG.md
benjaminfaure Jan 24, 2023
6734056
updated paginable concern to fix issue with keyword args
briri Jan 24, 2023
1d02678
fixed an issue that was causing templates.visibility to get set to or…
briri Jan 24, 2023
5246ce3
updated change log
briri Jan 24, 2023
f90fc88
fixed typo
briri Jan 24, 2023
beaaa93
make rubocop happy
briri Jan 24, 2023
b664780
removed before action from api v0 base_controller. opted to just incl…
briri Jan 25, 2023
66b628c
Merge branch 'development' of github.com:DMPRoadmap/roadmap into pagi…
briri Jan 25, 2023
7e2e563
Added missing show_research_outputs option into as_csv method
benjaminfaure Jan 27, 2023
00459b6
Merge pull request #3279 from DMPRoadmap/pagination-fix
benjaminfaure Jan 27, 2023
cfc9b39
Merge branch 'development' into domo-arigato
benjaminfaure Jan 27, 2023
1b816d9
Merge pull request #3284 from DMPRoadmap/domo-arigato
benjaminfaure Jan 27, 2023
223a7f9
Merge branch 'development' into fix-pagniable-links
benjaminfaure Jan 27, 2023
1348990
Merge pull request #3285 from DMPRoadmap/fix-pagniable-links
benjaminfaure Jan 27, 2023
9a62130
Merge branch 'development' into issue3254
benjaminfaure Jan 27, 2023
2300c89
Merge branch 'development' into research-outputs-csv
benjaminfaure Jan 30, 2023
36b6dfb
Merge pull request #3277 from DMPRoadmap/research-outputs-csv
benjaminfaure Jan 30, 2023
16f35a4
Merge branch 'development' into issue3254
benjaminfaure Jan 30, 2023
b99cadc
Merge pull request #3255 from benjaminfaure/issue3254
benjaminfaure Jan 30, 2023
20093d2
Merge branch 'development' into fix-template-save
benjaminfaure Jan 30, 2023
72e6f76
Merge pull request #3286 from DMPRoadmap/fix-template-save
benjaminfaure Jan 30, 2023
af32bbe
Updated translations
benjaminfaure Feb 3, 2023
203a1c2
Updated Ruby & JS dependencies
benjaminfaure Feb 3, 2023
27c3c4a
Make rubocop happy
benjaminfaure Feb 3, 2023
d95a1a9
Merge pull request #3289 from DMPRoadmap/development
benjaminfaure Feb 3, 2023
9421b57
Merge branch 'upstream-release/v4.0.0' into aaron/merge-upstream-rele…
aaronskiba Oct 6, 2023
509ea6f
Remove duplicate code added after v4.0.0 merge
aaronskiba Oct 6, 2023
f9eb842
Configure translation.rb after v4.0.0 merge
aaronskiba Oct 6, 2023
e1a455f
Comment out logger changes after merging v4.0.0
aaronskiba Oct 6, 2023
7d5bb2e
Merge branch 'upstream-release/v4.0.1' into aaron/merge-upstream-rele…
aaronskiba Oct 6, 2023
75e48d0
Modify mysql.yml with corresponding v4.0.1 file
aaronskiba Oct 6, 2023
46eba76
Merge branch 'upstream-release/v4.0.2' into aaron/merge-upstream-rele…
aaronskiba Oct 6, 2023
c3a2ac6
#TEMP Pin rubocop to match upstream release v4.0.2
aaronskiba Oct 6, 2023
db5740f
`bundle update`
aaronskiba Oct 6, 2023
e86301a
replace 'safe_email' with 'email' for Faker
aaronskiba Oct 6, 2023
9879bb6
#TEMP Skip 'User creates a new Plan' test
aaronskiba Oct 6, 2023
203986c
Change credentials file used in workflows/ruby.yml
aaronskiba Oct 6, 2023
42b6a66
Merge branch 'deployment-portage' into aaron/merge-upstream-releases-…
aaronskiba Oct 23, 2023
8c94f6b
Fix org_types_tooltip format for translation.io
aaronskiba Oct 23, 2023
6f66d55
Update CHANGELOG.md
aaronskiba Oct 23, 2023
324044f
Remove commented out logger code
aaronskiba Oct 24, 2023
cf811d1
Set up dmproadmap_host secret
aaronskiba Oct 25, 2023
44bfd76
Remove en-GB from translation.io supported locales
aaronskiba Oct 25, 2023
b7f20f4
add config.host secret to sandbox, staging, & uat
aaronskiba Oct 27, 2023
fe4e181
Config host with ENV (not secret) for development
aaronskiba Nov 23, 2023
99c7445
remove unused 'require' statement + commented code
aaronskiba Nov 23, 2023
df8d7ce
Add CHANGELOG.md changes from Release v4.0.2
aaronskiba Nov 23, 2023
aacb5c1
Edit rubocop pinning comment in Gemfile
aaronskiba Nov 23, 2023
f157edb
put back `end` (fix commit fe4e18131)
aaronskiba Nov 23, 2023
0f91dc3
Merge branch 'deployment-portage' into aaron/merge-upstream-releases-…
aaronskiba Nov 24, 2023
f4fe589
Stop Spring reload in production mode
aaronskiba Nov 28, 2023
8d19410
Flagshihtzu fix to allow Docker GH action to pass
aaronskiba Dec 1, 2023
5772e2e
Edit Alignment of Changelog entries
aaronskiba Dec 19, 2023
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
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true


# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,scss,rb,erb}]
charset = utf-8
indent_style = space
indent_size = 2
48 changes: 48 additions & 0 deletions .env.mysql2
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# DMPRoadmap dotenv file

# Rails log level
RAILS_LOG_LEVEL=debug
# Whether or not Rails should log to STDOUT. If false it will log to `./logs/[env].log`
RAILS_LOG_TO_STDOUT=true
# Whether or not Rails will be serving your static assets
RAILS_SERVE_STATIC_FILES=false
# Maximum number of Puma threads
RAILS_MAX_THREADS=5
# Maximum number of Puma workers
WEB_CONCURRENCY=2
# The port puma will use to host the Rails app
PORT=3000

# Rails 6.1+ has a white-list of valid domains. You must set this for your production env!
DMPROADMAP_HOST=localhost

# The location of the wkhtmltopdf app. Once bundler has installed it, you can find it with
# `which wkhtmltopdf` on linux/osx systems.
WICKED_PDF_PATH=/usr/local/bin/wkhtmltopdf

# Database settings.
DB_ADAPTER=mysql2
DB_HOST=localhost
DB_PORT=3306
DB_POOL_SIZE=16
DB_NAME=roadmap

# Whether or not the Dragonfly gem should use AWS S3 to store logos. If 'false' the logos will
# be stored on the local disk. If true, you must provide the `AWS_` prefixed values.
DRAGONFLY_AWS=false
AWS_REGION=
AWS_BUCKET_NAME=

# If you have a Rollbar account and want to redcord errors there, add your token here
ROLLBAR_ACCESS_TOKEN=
ROLLBAR_ENV=

# Translation IO variables. The Domain can be either `app` or `client` and is typically defined
# when running `bin/rails translations:sync DOMAIN=app`. `client` will use any of your
# customized content in ./app/views/branded and `app` is for the core roadmap translations.
# Include your Translation.io API key for the appropriate domains:
# app => TRANSLATION_API_ROADMAP
# client => TRANSLATION_API_CLIENT
# DOMAIN=app
# TRANSLATION_API_ROADMAP=
# TRANSLATION_API_CLIENT=
48 changes: 48 additions & 0 deletions .env.postgresql
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# DMPRoadmap dotenv file

# Rails log level
RAILS_LOG_LEVEL=debug
# Whether or not Rails should log to STDOUT. If false it will log to `./logs/[env].log`
RAILS_LOG_TO_STDOUT=true
# Whether or not Rails will be serving your static assets
RAILS_SERVE_STATIC_FILES=false
# Maximum number of Puma threads
RAILS_MAX_THREADS=5
# Maximum number of Puma workers
WEB_CONCURRENCY=2
# The port puma will use to host the Rails app
PORT=3000

# Rails 6.1+ has a white-list of valid domains. You must set this for your production env!
DMPROADMAP_HOST=localhost

# The location of the wkhtmltopdf app. Once bundler has installed it, you can find it with
# `which wkhtmltopdf` on linux/osx systems.
WICKED_PDF_PATH=/usr/local/bin/wkhtmltopdf

# Database settings.
DB_ADAPTER=postgresql
DB_HOST=localhost
DB_PORT=5432
DB_POOL_SIZE=16
DB_NAME=roadmap

# Whether or not the Dragonfly gem should use AWS S3 to store logos. If 'false' the logos will
# be stored on the local disk. If true, you must provide the `AWS_` prefixed values.
DRAGONFLY_AWS=false
AWS_REGION=
AWS_BUCKET_NAME=

# If you have a Rollbar account and want to redcord errors there, add your token here
ROLLBAR_ACCESS_TOKEN=
ROLLBAR_ENV=

# Translation IO variables. The Domain can be either `app` or `client` and is typically defined
# when running `bin/rails translations:sync DOMAIN=app`. `client` will use any of your
# customized content in ./app/views/branded and `app` is for the core roadmap translations.
# Include your Translation.io API key for the appropriate domains:
# app => TRANSLATION_API_ROADMAP
# client => TRANSLATION_API_CLIENT
DOMAIN=app
TRANSLATION_API_ROADMAP=
TRANSLATION_API_CLIENT=
12 changes: 8 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn run eslint ./app/javascript/**/*.js
cache: 'yarn'

# Run yarn install for JS dependencies
- name: 'Yarn Install'
run: yarn install

- name: 'Run ESLint'
run: yarn run eslint app/javascript/**/*.js --ext .js
105 changes: 33 additions & 72 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
mysql:
runs-on: ubuntu-20.04

# Define environment variables for MySQL and Rails
env:
DB_ADAPTER: mysql2
MYSQL_PWD: root
Expand All @@ -14,102 +15,62 @@ jobs:
steps:
# Checkout the repo
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 16

- name: 'Install MySQL Packages'
run: |
sudo apt-get update
sudo apt-get install -y mysql-client-core-8.0
sudo apt-get install -y mysql-server
sudo apt-get install -y libmysqlclient-dev

- name: 'Determine Ruby and Bundler Versions from Gemfile.lock'
run: |
echo "RUBY_VERSION=`cat ./Gemfile.lock | grep -A 1 'RUBY VERSION' | grep 'ruby' | grep -oE '[0-9]\.[0-9]'`" >> $GITHUB_ENV
echo "BUNDLER_VERSION=`cat ./Gemfile.lock | grep -A 1 'BUNDLED WITH' | grep -oE '[0-9]\.[0-9]'`" >> $GITHUB_ENV
# Install Ruby and run bundler
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.6
bundler-cache: true

- name: 'Install Ruby'
uses: ruby/setup-ruby@v1
# Install Node
- uses: actions/setup-node@v2
with:
ruby-version: ${{ env.RUBY_VERSION }}
node-version: 16
cache: 'yarn'

# Copy all of the example configs over
- name: 'Setup Default Configuration'
- name: 'Setup the application'
run: |
# Make copies of all the example config files
cp config/database.yml.sample config/database.yml
cp config/initializers/contact_us.rb.example config/initializers/contact_us.rb
cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
cp .env.mysql2 .env

# Try to retrieve the gems from the cache
- name: 'Cache Gems'
uses: actions/[email protected]
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-

- name: 'Bundle Install'
run: |
gem install bundler -v ${{ env.BUNDLER_VERSION }}
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3 --without pgsql rollbar aws

# Stub out the Rails credentials file so that we can start the Rails app
- name: 'Setup Credentials'
run: |
# generate a default credential file and key
EDITOR='echo "$(cat config/credentials.yml.example)" >' bundle exec rails credentials:edit

# # Try to retrieve the yarn JS dependencies from the cache
- name: 'Cache Yarn Packages'
uses: actions/[email protected]
with:
path: node_modules/
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-yarn-
${{ runner.os }}-
run: EDITOR='echo "$(cat config/credentials.yml.mysql2)" >' bundle exec rails credentials:edit

# Set the path to the wkhtmltopdf executable
- name: 'Determine wkhtmltopdf location'
run: echo "WICKED_PDF_PATH=`bundle exec which wkhtmltopdf`" >> $GITHUB_ENV

# Run yarn install for JS dependencies
- name: 'Yarn Install'
run: |
yarn install
run: yarn install

# Start the DB server and initialize the DB
- name: 'Start MySQL'
run: |
sudo systemctl unmask mysql
sudo systemctl start mysql
run: sudo systemctl start mysql

- name: 'Setup Test DB'
run: bin/rails db:setup RAILS_ENV=test
- name: 'Build out the test database'
run: |
bundle exec rails db:create RAILS_ENV=test
bundle exec rails db:schema:load RAILS_ENV=test

- name: 'Migrate DB'
- name: 'Run any pending database migrations'
run: bin/rails db:migrate RAILS_ENV=test

- name: 'Compile Assets'
run: |
bin/rails webpacker:compile
bin/rails assets:precompile

# Note V3.1.0 DMPTool commented out Karma tests and will move this part to rspec
- name: 'Run Karma Tests'
run: yarn test
# Prebuild the CSS, JS and image assets
- name: 'Precompile all of the Assets'
run: bundle exec rails assets:precompile

# Run the unit and functional tests
- name: 'Run Rspec Unit and Functional Tests'
run: |
bin/bundle exec rspec spec/models/ spec/policies/ spec/services/ spec/helpers/
bin/bundle exec rspec spec/controllers/ spec/presenters/ spec/requests/ spec/views
bin/bundle exec rspec spec/mixins/
bundle exec rspec spec/models/ spec/policies/ spec/services/ spec/helpers/
bundle exec rspec spec/controllers/ spec/presenters/ spec/requests/ spec/views
bundle exec rspec spec/mixins/

# Only run Integration tests if the PR or Push is to master or development branches
# Run the time consuming integration tests (using Chrome headless browser)
- name: 'Run Rspec Integration Tests'
run: bin/bundle exec rspec spec/features/
run: bundle exec rspec spec/features/
32 changes: 15 additions & 17 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
# Checkout the repo
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
ruby-version: 2.7.6
bundler-cache: true

# Install Node
- uses: actions/setup-node@v2
with:
node-version: 16

Expand All @@ -59,6 +62,7 @@ jobs:
cp config/database.yml.sample config/database.yml
cp config/initializers/contact_us.rb.example config/initializers/contact_us.rb
cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
cp .env.postgresql .env

# Try to retrieve the gems from the cache
- name: 'Cache Gems'
Expand All @@ -78,7 +82,7 @@ jobs:
- name: 'Setup Credentials'
run: |
# generate a default credential file and key
EDITOR='echo "$(cat config/credentials.yml.example)" >' bundle exec rails credentials:edit
EDITOR='echo "$(cat config/credentials.yml.postgresql)" >' bundle exec rails credentials:edit

# Try to retrieve the yarn JS dependencies from the cache
- name: 'Cache Yarn Packages'
Expand All @@ -100,25 +104,19 @@ jobs:
yarn install

- name: 'Setup Test DB'
run: bin/rails db:setup RAILS_ENV=test

- name: 'Migrate DB'
run: bin/rails db:migrate RAILS_ENV=test

- name: 'Compile Assets'
run: |
bin/rails webpacker:compile
bin/rails assets:precompile
bundle exec rails db:setup RAILS_ENV=test
bundle exec rails db:migrate RAILS_ENV=test

- name: 'Run Karma Tests'
run: yarn test
- name: 'Compile Assets'
run: bundle exec rails assets:precompile

- name: 'Run Rspec Unit and Functional Tests'
run: |
bin/rspec spec/models/ spec/policies/ spec/services/ spec/helpers/
bin/rspec spec/controllers/ spec/presenters/ spec/requests/ spec/views
bin/rspec spec/mixins/
bundle exec rspec spec/models/ spec/policies/ spec/services/ spec/helpers/
bundle exec rspec spec/controllers/ spec/presenters/ spec/requests/ spec/views
bundle exec rspec spec/mixins/

# Integration Tests are only run if PR or Push is to master or development branches
- name: 'Run Integration Tests'
run: bin/rspec spec/features/
run: bundle exec rspec spec/features/
9 changes: 2 additions & 7 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ jobs:
- name: 'Install Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}

- name: 'Bundle Install'
run: |
gem install bundler -v ${{ env.BUNDLER_VERSION }}
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3 --without pgsql rollbar aws
ruby-version: 2.7.6
bundler-cache: true

- name: 'Run Rubocop'
run: bin/rubocop
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: 'Setup Credentials'
run: |
# generate a default credential file and key
EDITOR='echo "$(cat config/credentials.yml.example)" >' bundle exec rails credentials:edit
EDITOR='echo "$(cat config/credentials.yml.mysql2)" >' bundle exec rails credentials:edit

# Try to retrieve the yarn JS dependencies from the cache
- name: 'Cache Yarn Packages'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ yarn-debug.log*
.yarn-integrity

# Ignore staging files in db folder since they can be auto-generated
/db/seeds/staging
/db/seeds/staging
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [Unreleased]

### Added

- Merged Upstream Release [v4.0.0](https://github.com/DMPRoadmap/roadmap/releases/tag/v4.0.0)

- Merged Upstream Release [v4.0.1](https://github.com/DMPRoadmap/roadmap/releases/tag/v4.0.1)

- Merged Upstream Release [v4.0.2](https://github.com/DMPRoadmap/roadmap/releases/tag/v4.0.2)

## [3.3.1+portage-3.2.1] - 2023-10-19

### Fixed
Expand Down
Loading