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

Improve setup and seed #1352

Merged
merged 108 commits into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
ba33f57
Add database constraints
Oct 4, 2019
c4dd204
Remove duplicate index
Oct 4, 2019
426dab6
Implement deps resolving in bin/setup
teadur Sep 9, 2019
6276e24
check for uid=0
teadur Sep 9, 2019
e8e19c0
minor Cleanup
teadur Sep 9, 2019
e70fa4c
split setup to setup and deps, bump rubocop channel to 0-74
teadur Oct 7, 2019
02c4588
db:seed create admin user and first registrar
teadur Oct 9, 2019
fc181d3
Merge pull request #1338 from internetee/add-db-constraints
vohmar Oct 10, 2019
aac098c
Update CHANGELOG.md
vohmar Oct 10, 2019
bbaad16
Remove unused rake task
Oct 10, 2019
ce5ac9b
Remove `activerecord-import` gem
Oct 10, 2019
e869c2d
Address review comments:
teadur Oct 10, 2019
5ecfad4
Address review comments:
teadur Oct 10, 2019
781dd85
Merge pull request #1353 from internetee/Changelog_update_191010
vohmar Oct 11, 2019
4010cb5
Fix mailer preview
Oct 6, 2019
e4bb6b4
Merge pull request #1342 from internetee/fix-mailer-preview
vohmar Oct 11, 2019
6a14b74
Update CHANGELOG.md
vohmar Oct 11, 2019
6b1493f
Update `ransack` gem
Oct 11, 2019
8a167c4
Reorganize tests
Oct 11, 2019
65fce4e
Merge pull request #1359 from internetee/reorganize-tests
artur-intech Oct 11, 2019
3b6661c
Merge pull request #1355 from internetee/remove-unused-rake-task
vohmar Oct 11, 2019
09f8a3a
Merge pull request #1357 from internetee/update-ransack-gem
vohmar Oct 11, 2019
20acaa5
Update CHANGELOG.md
vohmar Oct 11, 2019
ee8fbbc
Remove deprecated Docker instruction
Oct 12, 2019
ddaf9c9
Merge pull request #1356 from internetee/Changelog_update_191011
vohmar Oct 14, 2019
cb3bf7f
List EPP routes explicitly
Oct 1, 2019
8bcdeb2
Convert HAML to ERB
Oct 12, 2019
f8765ec
Extract partial
Oct 12, 2019
199085f
Use resourceful routes
Oct 12, 2019
7fbf21d
Convert HAML to ERB
Oct 12, 2019
59a6f9d
Improve readability
Oct 12, 2019
1374de8
Use default translations
Oct 12, 2019
90a90f3
Configure `pdfkit` gem
Oct 15, 2019
b434e6a
Do not load `capybara` gem in development
Oct 16, 2019
041b63e
Replace `selenium-webdriver` gem with `webdrivers`
Oct 16, 2019
d8acd99
Use block variable
Oct 16, 2019
42c5747
Simplify Puma config
Oct 16, 2019
e7832e6
Update `capybara` gem
Oct 16, 2019
a25943b
Update `simplecov` gem
Oct 16, 2019
51926bc
Update `puma` gem
Oct 16, 2019
526369f
Merge pull request #1360 from internetee/improve-domain-and-contact-l…
vohmar Oct 16, 2019
aa1b693
Update CHANGELOG.md
vohmar Oct 16, 2019
9a8c37a
Merge pull request #1361 from internetee/remove-deprecated-docker-ins…
vohmar Oct 16, 2019
4a6a605
Use `wkhtmltopdf-binary` gem instead of bundled binary
Oct 16, 2019
d630366
Remove `pdfkit` gem config
Oct 16, 2019
60a98c2
Merge pull request #1364 from internetee/limit-epp-routes
vohmar Oct 16, 2019
cb76674
Update CHANGELOG.md
vohmar Oct 16, 2019
e3bcc0b
Merge pull request #1369 from internetee/Changelog_update_191016
vohmar Oct 16, 2019
397136e
Handle EPP contact:transfer
Oct 14, 2019
8b3b8a3
Merge pull request #1363 from internetee/handle-epp-contact-transfer
vohmar Oct 17, 2019
e3cf266
Update CHANGELOG.md
vohmar Oct 17, 2019
227031e
Merge pull request #1366 from internetee/tune-test-env
vohmar Oct 17, 2019
e1de3f5
Update CHANGELOG.md
vohmar Oct 17, 2019
c022caa
Remove duplicate route
Oct 18, 2019
c53b391
Remove dead code
Oct 16, 2019
9fc6d6c
Remove unneeded html
Oct 16, 2019
cb3d298
Convert HAML to ERB
Oct 16, 2019
64ea8d3
Reformat
Oct 16, 2019
5e0c63b
Remove unneeded HTML
Oct 16, 2019
0971544
Extract translations
Oct 16, 2019
558261c
Add tests
Oct 19, 2019
c9fbc92
Remove Bullet-related code
Oct 19, 2019
0ab2b2a
Remove `bullet` gem
Oct 19, 2019
418caf2
Merge pull request #1372 from internetee/Changelog_update_191017
vohmar Oct 21, 2019
b80d43f
Merge pull request #1367 from internetee/tune-pdfkit-gem
vohmar Oct 21, 2019
7db6016
Update CHANGELOG.md
vohmar Oct 21, 2019
61f5532
Merge pull request #1370 from internetee/remove-dead-code
vohmar Oct 21, 2019
77800e7
Update CHANGELOG.md
vohmar Oct 21, 2019
d24dbef
Update .editorconfig
Oct 22, 2019
fdd1cd7
Merge pull request #1382 from internetee/update-editorconfig
artur-intech Oct 22, 2019
9d08b61
Update CodeClimate Rubocop
Oct 22, 2019
deed487
Merge pull request #1383 from internetee/tune-codeclimate
artur-intech Oct 22, 2019
ea46364
Merge pull request #1381 from internetee/Changelog_update_191021
vohmar Oct 22, 2019
249db78
Update `haml` gem
Oct 22, 2019
0eafd33
Merge pull request #1375 from internetee/remove-duplicate-route
vohmar Oct 23, 2019
e93ec4c
Update CHANGELOG.md
vohmar Oct 23, 2019
68645a9
Merge pull request #1379 from internetee/remove-bullet-gem
vohmar Oct 23, 2019
2609710
Update CHANGELOG.md
vohmar Oct 23, 2019
cb823bb
Merge pull request #1384 from internetee/update-haml-gem
vohmar Oct 23, 2019
97c7181
Update CHANGELOG.md
vohmar Oct 23, 2019
f26d709
Update CHANGELOG.md
vohmar Oct 23, 2019
4e59ead
Remove unused SASS
Oct 24, 2019
2a13324
Remove unused code
Oct 24, 2019
561da72
Downgrade `minitest` gem
Oct 16, 2019
9668ec3
Add database constraints
Oct 24, 2019
6f3812d
Merge pull request #1385 from internetee/Changelog_update_191023
vohmar Oct 24, 2019
b2e66aa
Remove unused code
Oct 25, 2019
351123e
Merge pull request #1387 from internetee/downgrade-minitest-gem
vohmar Oct 28, 2019
c9e353d
Update CHANGELOG.md
vohmar Oct 28, 2019
214f301
Merge pull request #1386 from internetee/remove-dead-code
vohmar Oct 28, 2019
3b376de
Update CHANGELOG.md
vohmar Oct 28, 2019
3d73f41
Merge pull request #1388 from internetee/add-db-constraints
vohmar Oct 28, 2019
2e22421
Update CHANGELOG.md
vohmar Oct 28, 2019
9c04ac3
Update `kaminari` gem
Oct 28, 2019
86612ac
Merge pull request #1392 from internetee/update-kaminari-gem
vohmar Oct 28, 2019
ee3b343
Update CHANGELOG.md
vohmar Oct 28, 2019
625294f
Merge pull request #1391 from internetee/Changelog_update_191028
vohmar Oct 28, 2019
0974c59
revert codeclimate rubocop upgrade
teadur Oct 29, 2019
e810f49
Implement deps resolving in bin/setup
teadur Sep 9, 2019
a6f6a69
check for uid=0
teadur Sep 9, 2019
60c35a6
minor Cleanup
teadur Sep 9, 2019
71f9975
split setup to setup and deps, bump rubocop channel to 0-74
teadur Oct 7, 2019
bdc516f
db:seed create admin user and first registrar
teadur Oct 9, 2019
9ee8eca
Address review comments:
teadur Oct 10, 2019
98613fa
Address review comments:
teadur Oct 10, 2019
fdd53ee
revert codeclimate rubocop upgrade
teadur Oct 29, 2019
21822b7
Merge branch 'improve-setup-and-seed' of https://github.com/internete…
teadur Oct 29, 2019
00d7ff5
Revert "revert codeclimate rubocop upgrade"
teadur Oct 29, 2019
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
8 changes: 4 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: "2"
prepare:
fetch:
- "https://raw.githubusercontent.com/internetee/style-guide/master/ruby/.rubocop.yml"
- "https://raw.githubusercontent.com/internetee/style-guide/master/.rubocop-ruby.yml"
- url: "https://raw.githubusercontent.com/internetee/style-guide/master/.rubocop-rails.yml"
path: ".rubocop.yml"
plugins:
brakeman:
enabled: true
Expand All @@ -20,9 +22,8 @@ plugins:
enabled: true
rubocop:
enabled: true
channel: rubocop-0-58
channel: rubocop-0-74
exclude_patterns:
- "app/models/legacy/"
- "app/models/version/"
- "bin/"
- "config/"
Expand All @@ -35,7 +36,6 @@ exclude_patterns:
- "lib/tasks/bootstrap.rake"
- "lib/tasks/db.rake"
- "lib/tasks/documents.rake"
- "lib/tasks/import.rake"
- "lib/tasks/legal_doc.rake"
- "lib/tasks/whois.rake"
- "test/"
Expand Down
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ indent_style = space
indent_size = 2
max_line_length = 100
trim_trailing_whitespace = true
insert_final_newline = false
insert_final_newline = true

[*.{html,erb}]
[*.{html,erb,js}]
indent_size = 4
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
28.10.2019
* Updated kaminari gem to 1.1.1 [#1392](https://github.com/internetee/registry/pull/1392)
* Downgraded minitest to 5.10.3 due to incompatibility with Rails 5.0 [#1387](https://github.com/internetee/registry/pull/1387)
* New db constaints to invoices and invoice_items tables [#1388](https://github.com/internetee/registry/pull/1388)
* Removed buggy code for contact details' fast access in regitrar portal [#1386](https://github.com/internetee/registry/pull/1386)

23.10.2019
* Updated haml gem to 5.1.2 (CVE-2017-1002201) [#1384](https://github.com/internetee/registry/pull/1384)
* Removed bullet gem [#378](https://github.com/internetee/registry/issues/378)
* Removed duplicate route from admin [#1375](https://github.com/internetee/registry/pull/1375)

21.10.2019
* Tuned PDFkit gem [#1367](https://github.com/internetee/registry/pull/1367)
* Removed some dead code [#1370](https://github.com/internetee/registry/pull/1370)

17.10.2019
* Implemented properl handling of contact transfer requests [#1363](https://github.com/internetee/registry/pull/1363)
* Test environment tuning [#1366](https://github.com/internetee/registry/pull/1366)

16.10.2019
* Contact and domain list download in portals changed - buttons in stead of dropdown [#1360](https://github.com/internetee/registry/pull/1360)
* limited epp routes [#1364](https://github.com/internetee/registry/pull/1364)

11.10.2019
* Fixed mailer previews for couple email templates [#1342](https://github.com/internetee/registry/pull/1342)
* Updated ransack gem to 1.8 [#1357](https://github.com/internetee/registry/pull/1357)
* Removed old import rake task [#1355](https://github.com/internetee/registry/pull/1355)

10.10.2019
* Added DB constraints for reserved and blocked tables [#1338](https://github.com/internetee/registry/pull/1338)

08.10.2019
* Removed unused epp routes [#1335](https://github.com/internetee/registry/pull/1335)
* Removed Rspec and coverted specs to tests [#1336](https://github.com/internetee/registry/pull/1336)
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM internetee/ruby:2.4
MAINTAINER maciej.szlosarczyk@internet.ee

RUN mkdir -p /opt/webapps/app/tmp/pids
WORKDIR /opt/webapps/app
Expand Down
23 changes: 8 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ gem 'figaro', '1.1.1'

# model related
gem 'pg', '0.19.0'
gem 'ransack', '1.5.1' # for searching
# 1.8 is for Rails < 5.0
gem 'ransack', '~> 1.8'
gem 'validates_email_format_of', '1.6.3' # validates email against RFC 2822 and RFC 3696
gem 'paper_trail', '~> 4.0'

Expand All @@ -33,9 +34,7 @@ gem 'sass-rails', '5.0.6' # sass style
gem 'coffee-rails', '~> 4.2'
gem 'jquery-rails'
gem 'selectize-rails', '0.12.1' # include selectize.js for select

# view helpers
gem 'kaminari', '0.16.3' # pagination
gem 'kaminari'
gem 'coderay', '1.1.0' # xml console visualize
gem 'select2-rails', '3.5.9.3' # for autocomplete
gem 'cancancan'
Expand Down Expand Up @@ -68,10 +67,6 @@ gem 'uuidtools', '2.1.5' # For unique IDs (used by the epp gem)
gem 'que', '0.10.0'
gem 'daemons-rails', '1.2.1'
gem 'que-web', '0.4.0'

# for importing legacy db
gem 'activerecord-import', '0.7.0' # for inserting dummy data

gem 'pdfkit'
gem 'jquery-ui-rails', '5.0.5'
gem 'active_model-errors_details' # Backport from Rails 5, https://github.com/rails/rails/pull/18322
Expand All @@ -81,29 +76,27 @@ gem 'company_register', github: 'internetee/company_register', branch: :master
gem 'e_invoice', github: 'internetee/e_invoice', branch: :master
gem 'lhv', github: 'internetee/lhv', tag: 'v0.1.0'
gem 'domain_name'
gem 'haml'
gem 'haml', '~> 5.0'
gem 'wkhtmltopdf-binary'

group :development do
# deploy
gem 'mina', '0.3.1' # for fast deployment
end

group :development, :test do
gem 'capybara'
gem 'selenium-webdriver'

# debug
gem 'pry', '0.10.1'

gem 'bullet', '4.14.7' # for finding database optimizations
gem 'sdoc', '0.4.1' # bundle exec rake doc:rails generates the API under doc/api.
gem 'railroady', '1.3.0' # to generate database diagrams
gem 'autodoc'
gem 'puma'
end

group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'simplecov', require: false
gem 'webdrivers'
gem 'webmock'
gem 'minitest', '~> 5.10.0'
end
Loading