forest_liana 6.3.3 → 6.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84424699c2834facc9807360cdefbc7de4bf5e473d5d8976fc257c70a5878695
4
- data.tar.gz: f96a6c6e6ba27fcd42a67ffacd1ddde1133b9980eec177c969494484d2708072
3
+ metadata.gz: e0fd5ef4e67fd45b6a701da7dbf8da36d6f6abb3d9e2be4d0031d0495a10727a
4
+ data.tar.gz: 9c823060491af5ff42f098e041ffe9f2ac672865c4a790e4b8bb3f1bb1e7447b
5
5
  SHA512:
6
- metadata.gz: 8f509cc0cfed575e60c0b68e11cd44a6bb59c86dfd7bd5e40d14f87f9e2400b4ed7fccafc107e2eea1dbe474f564f9a48d76d84331ca5c9727adae7439176dda
7
- data.tar.gz: ffdba30b4b5252116c020b42fde6d439baf910d5bcd572c73d5e6bd6c48a6fd39c9803df2300ad0617e61beb4e33bd0edd5c8286eae0a51e348226d187e04be5
6
+ metadata.gz: c6a0639f27ebecd6f7e66e83bbdc527a08e0483435e6485c80ed66f45832c886ef50cb46402a4b74b1ff8cc6b8f284419f53fd1ebebf532c57fe089d2d0bdec6
7
+ data.tar.gz: 0e329ab499ed3b2414c50097f3b2cad74733c0bc51db835b25bb1a9713229f8feb6f42ad1b7fa3a038f73e357dc46bc3cad0fc6f6ad61224f306c644d02fbf1e
@@ -89,6 +89,11 @@ module ForestLiana
89
89
  parameters.delete('controller');
90
90
  parameters.delete('action');
91
91
 
92
+ # NOTICE: Remove the field information from group_by_field => collection:id
93
+ if parameters['group_by_field']
94
+ parameters['group_by_field'] = parameters['group_by_field'].split(':').first
95
+ end
96
+
92
97
  return parameters;
93
98
  end
94
99
 
@@ -3,6 +3,9 @@ module ForestLiana
3
3
  attr_accessor :record
4
4
 
5
5
  def client_timezone
6
+ # As stated here https://github.com/ankane/groupdate#for-sqlite
7
+ # groupdate does not handle timezone for SQLite
8
+ return false if 'SQLite' == ActiveRecord::Base.connection.adapter_name
6
9
  @params[:timezone]
7
10
  end
8
11
 
@@ -26,10 +29,9 @@ module ForestLiana
26
29
  value = FiltersParser.new(@params[:filters], value, @params[:timezone]).apply_filters
27
30
  end
28
31
 
29
- value = value.send(time_range, group_by_date_field, {
30
- time_zone: client_timezone,
31
- week_start: :mon
32
- })
32
+ Groupdate.week_start = :monday
33
+
34
+ value = value.send(time_range, group_by_date_field, time_zone: client_timezone)
33
35
 
34
36
  value = value.send(@params[:aggregate].downcase, @params[:aggregate_field])
35
37
  .map do |k, v|
@@ -177,13 +177,12 @@ module ForestLiana
177
177
  return false unless pool_permissions
178
178
 
179
179
  # NOTICE: equivalent to Object.values in js & removes nil values
180
- array_query_request_info = @query_request_info.values.filter_map{ |x| x unless x.nil? }
180
+ array_permission_infos = @query_request_info.values.filter_map{ |x| x unless x.nil? }
181
181
 
182
- # NOTICE: pool_permissions contains the @query_request_info
183
- # we use the intersection between statPermission and @query_request_info
182
+ # NOTICE: Is there any pool_permissions containing the array_permission_infos
184
183
  return pool_permissions.any? {
185
184
  |statPermission|
186
- (array_query_request_info & statPermission.values) == array_query_request_info;
185
+ (array_permission_infos.all? { |info| statPermission.values.include?(info) });
187
186
  }
188
187
  end
189
188
 
@@ -479,7 +479,7 @@ module ForestLiana
479
479
  regex = value.source
480
480
 
481
481
  # NOTICE: Transform a Ruby regex into a JS one
482
- regex = regex.sub('\\A' , '^').sub('\\Z' , '$').sub('\\z' , '$')
482
+ regex = regex.sub('\\A' , '^').sub('\\Z' , '$').sub('\\z' , '$').gsub(/\n+|\s+/, '')
483
483
 
484
484
  column_schema[:validations] << {
485
485
  type: 'is like',
@@ -66,7 +66,7 @@ module ForestLiana
66
66
  ActiveStorage::Attachment
67
67
  end
68
68
 
69
- if Rails::VERSION::MAJOR > 5 && defined?(Zeitwerk::Loader)
69
+ if Rails::VERSION::MAJOR > 5 && Rails.autoloaders.zeitwerk_enabled?
70
70
  Zeitwerk::Loader.eager_load_all
71
71
  else
72
72
  app.eager_load!
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "6.3.3"
2
+ VERSION = "6.3.8"
3
3
  end
@@ -0,0 +1,2 @@
1
+ class Owner < ActiveRecord::Base
2
+ end
@@ -0,0 +1,3 @@
1
+ class Product < ActiveRecord::Base
2
+ validates :uri, presence: true, format: { with: URI::DEFAULT_PARSER.make_regexp }
3
+ end
@@ -0,0 +1,8 @@
1
+ class CreateOwners < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :owners do |t|
4
+ t.string :name
5
+ t.datetime :hired_at
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ class CreateProducts < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :products do |t|
4
+ t.string :uri
5
+ end
6
+ end
7
+ end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2021_03_26_140855) do
13
+ ActiveRecord::Schema.define(version: 2021_05_26_084712) do
14
14
 
15
15
  create_table "isle", force: :cascade do |t|
16
16
  t.string "name"
@@ -27,6 +27,15 @@ ActiveRecord::Schema.define(version: 2021_03_26_140855) do
27
27
  t.index ["island_id"], name: "index_locations_on_island_id"
28
28
  end
29
29
 
30
+ create_table "owners", force: :cascade do |t|
31
+ t.string "name"
32
+ t.datetime "hired_at"
33
+ end
34
+
35
+ create_table "products", force: :cascade do |t|
36
+ t.string "uri"
37
+ end
38
+
30
39
  create_table "references", force: :cascade do |t|
31
40
  t.datetime "created_at", precision: 6, null: false
32
41
  t.datetime "updated_at", precision: 6, null: false
@@ -72,12 +72,14 @@ describe "Stats", type: :request do
72
72
  expect(response.status).to eq(404)
73
73
  end
74
74
 
75
- # it 'should respond 403 Forbidden' do
76
- # allow_any_instance_of(ForestLiana::PermissionsChecker).to receive(:is_authorized?) { false }
75
+ it 'should respond 403 Forbidden' do
76
+ allow_any_instance_of(ForestLiana::PermissionsChecker).to receive(:is_authorized?) { false }
77
+ # NOTICE: bypass : find_resource error
78
+ allow_any_instance_of(ForestLiana::StatsController).to receive(:find_resource) { true }
77
79
 
78
- # post '/forest/stats/Products', params: JSON.dump(params), headers: headers
79
- # expect(response.status).to eq(403)
80
- # end
80
+ post '/forest/stats/Products', params: JSON.dump(params), headers: headers
81
+ expect(response.status).to eq(403)
82
+ end
81
83
  end
82
84
 
83
85
  describe 'POST /stats' do
@@ -0,0 +1,50 @@
1
+ module ForestLiana
2
+ describe LineStatGetter do
3
+ describe 'Check client_timezone function' do
4
+ describe 'with a SQLite database' do
5
+ it 'should return false' do
6
+ expect(LineStatGetter.new(Owner, {
7
+ timezone: "Europe/Paris",
8
+ aggregate: "Count",
9
+ }).client_timezone).to eq(false)
10
+ end
11
+ end
12
+
13
+ describe 'with a non-SQLite database' do
14
+ it 'should return the timezone' do
15
+ ActiveRecord::Base.connection.stub(:adapter_name) { 'NotSQLite' }
16
+ expect(LineStatGetter.new(Owner, {
17
+ timezone: "Europe/Paris",
18
+ aggregate: "Count",
19
+ }).client_timezone).to eq('Europe/Paris')
20
+ end
21
+ end
22
+ end
23
+
24
+ describe 'Check perform function' do
25
+ describe 'Using a Count aggregation' do
26
+ describe 'Using a Week time range' do
27
+ it 'should return consistent data based on monday as week_start ' do
28
+
29
+ # Week should start on monday
30
+ # 08-05-2021 was a Saturday
31
+ Owner.create(name: 'Michel', hired_at: Date.parse('08-05-2021'));
32
+ Owner.create(name: 'Robert', hired_at: Date.parse('09-05-2021'));
33
+ Owner.create(name: 'José', hired_at: Date.parse('10-05-2021'));
34
+ Owner.create(name: 'Yves', hired_at: Date.parse('11-05-2021'));
35
+
36
+ stat = LineStatGetter.new(Owner, {
37
+ timezone: "Europe/Paris",
38
+ aggregate: "Count",
39
+ time_range: "Week",
40
+ group_by_date_field: "hired_at",
41
+ }).perform
42
+
43
+ expect(stat.value.find { |item| item[:label] == "W18-2021" }[:values][:value]).to eq(2)
44
+ expect(stat.value.find { |item| item[:label] == "W19-2021" }[:values][:value]).to eq(2)
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -12,6 +12,19 @@ module ForestLiana
12
12
  )
13
13
  end
14
14
  end
15
+
16
+ context 'with a multiline regex validation' do
17
+ it 'should remove new lines in validation' do
18
+
19
+ collection = ForestLiana.apimap.find do |object|
20
+ object.name.to_s == ForestLiana.name_for(Product)
21
+ end
22
+
23
+ uri_field = collection.fields.find { |field| field[:field] == 'uri' }
24
+ uri_regex_validation = uri_field[:validations].find { |validation| validation[:type] == "is like"}
25
+ expect(uri_regex_validation[:value].match('\n')).to eq(nil)
26
+ end
27
+ end
15
28
  end
16
29
  end
17
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.3
4
+ version: 6.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-07 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: groupdate
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 2.5.2
89
+ version: 5.0.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 2.5.2
96
+ version: 5.0.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: useragent
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -326,6 +326,8 @@ files:
326
326
  - spec/dummy/app/helpers/application_helper.rb
327
327
  - spec/dummy/app/models/island.rb
328
328
  - spec/dummy/app/models/location.rb
329
+ - spec/dummy/app/models/owner.rb
330
+ - spec/dummy/app/models/product.rb
329
331
  - spec/dummy/app/models/reference.rb
330
332
  - spec/dummy/app/models/tree.rb
331
333
  - spec/dummy/app/models/user.rb
@@ -360,6 +362,8 @@ files:
360
362
  - spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
361
363
  - spec/dummy/db/migrate/20210326110524_create_references.rb
362
364
  - spec/dummy/db/migrate/20210326140855_create_locations.rb
365
+ - spec/dummy/db/migrate/20210511141752_create_owners.rb
366
+ - spec/dummy/db/migrate/20210526084712_create_products.rb
363
367
  - spec/dummy/db/schema.rb
364
368
  - spec/dummy/lib/forest_liana/collections/location.rb
365
369
  - spec/dummy/lib/forest_liana/collections/user.rb
@@ -374,6 +378,7 @@ files:
374
378
  - spec/services/forest_liana/apimap_sorter_spec.rb
375
379
  - spec/services/forest_liana/filters_parser_spec.rb
376
380
  - spec/services/forest_liana/ip_whitelist_checker_spec.rb
381
+ - spec/services/forest_liana/line_stat_getter_spec.rb
377
382
  - spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
378
383
  - spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
379
384
  - spec/services/forest_liana/permissions_checker_live_queries_spec.rb
@@ -478,7 +483,7 @@ homepage: https://github.com/ForestAdmin/forest-rails
478
483
  licenses:
479
484
  - GPL-3.0
480
485
  metadata: {}
481
- post_install_message:
486
+ post_install_message:
482
487
  rdoc_options: []
483
488
  require_paths:
484
489
  - lib
@@ -494,165 +499,170 @@ required_rubygems_version: !ruby/object:Gem::Requirement
494
499
  version: '0'
495
500
  requirements: []
496
501
  rubygems_version: 3.1.2
497
- signing_key:
502
+ signing_key:
498
503
  specification_version: 4
499
504
  summary: Official Rails Liana for Forest
500
505
  test_files:
501
- - test/routing/route_test.rb
502
- - test/fixtures/tree.yml
503
- - test/fixtures/has_many_field.yml
504
- - test/fixtures/serialize_field.yml
505
- - test/fixtures/owner.yml
506
- - test/fixtures/reference.yml
507
- - test/fixtures/string_field.yml
508
- - test/fixtures/belongs_to_field.yml
509
- - test/fixtures/has_many_through_field.yml
510
- - test/fixtures/has_one_field.yml
506
+ - test/forest_liana_test.rb
511
507
  - test/test_helper.rb
512
- - test/services/forest_liana/scope_validator_test.rb
513
- - test/services/forest_liana/operator_date_interval_parser_test.rb
514
508
  - test/services/forest_liana/has_many_getter_test.rb
515
- - test/services/forest_liana/schema_adapter_test.rb
516
509
  - test/services/forest_liana/pie_stat_getter_test.rb
517
- - test/services/forest_liana/value_stat_getter_test.rb
518
510
  - test/services/forest_liana/resource_updater_test.rb
519
- - test/forest_liana_test.rb
520
- - test/dummy/bin/bundle
521
- - test/dummy/bin/setup
522
- - test/dummy/bin/rake
523
- - test/dummy/bin/rails
524
- - test/dummy/config.ru
525
- - test/dummy/public/500.html
526
- - test/dummy/public/404.html
527
- - test/dummy/public/422.html
528
- - test/dummy/public/favicon.ico
529
- - test/dummy/app/assets/stylesheets/application.css
530
- - test/dummy/app/assets/config/manifest.js
531
- - test/dummy/app/assets/javascripts/application.js
532
- - test/dummy/app/helpers/application_helper.rb
533
- - test/dummy/app/views/layouts/application.html.erb
534
- - test/dummy/app/models/has_and_belongs_to_many_field.rb
535
- - test/dummy/app/models/decimal_field.rb
536
- - test/dummy/app/models/owner.rb
537
- - test/dummy/app/models/boolean_field.rb
538
- - test/dummy/app/models/has_one_field.rb
539
- - test/dummy/app/models/has_many_class_name_field.rb
540
- - test/dummy/app/models/has_many_through_field.rb
541
- - test/dummy/app/models/has_many_field.rb
542
- - test/dummy/app/models/belongs_to_field.rb
543
- - test/dummy/app/models/integer_field.rb
544
- - test/dummy/app/models/belongs_to_class_name_field.rb
545
- - test/dummy/app/models/polymorphic_field.rb
546
- - test/dummy/app/models/serialize_field.rb
547
- - test/dummy/app/models/tree.rb
548
- - test/dummy/app/models/float_field.rb
549
- - test/dummy/app/models/reference.rb
550
- - test/dummy/app/models/date_field.rb
551
- - test/dummy/app/models/string_field.rb
552
- - test/dummy/app/controllers/application_controller.rb
511
+ - test/services/forest_liana/value_stat_getter_test.rb
512
+ - test/services/forest_liana/scope_validator_test.rb
513
+ - test/services/forest_liana/schema_adapter_test.rb
514
+ - test/services/forest_liana/operator_date_interval_parser_test.rb
515
+ - test/routing/route_test.rb
516
+ - test/fixtures/string_field.yml
517
+ - test/fixtures/serialize_field.yml
518
+ - test/fixtures/has_one_field.yml
519
+ - test/fixtures/has_many_through_field.yml
520
+ - test/fixtures/has_many_field.yml
521
+ - test/fixtures/reference.yml
522
+ - test/fixtures/owner.yml
523
+ - test/fixtures/belongs_to_field.yml
524
+ - test/fixtures/tree.yml
553
525
  - test/dummy/db/schema.rb
554
- - test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
526
+ - test/dummy/db/migrate/20150608131610_create_float_field.rb
527
+ - test/dummy/db/migrate/20150608131430_create_integer_field.rb
528
+ - test/dummy/db/migrate/20170614141921_create_serialize_field.rb
529
+ - test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
555
530
  - test/dummy/db/migrate/20150608130516_create_date_field.rb
556
531
  - test/dummy/db/migrate/20150612112520_create_has_and_belongs_to_many_field.rb
557
532
  - test/dummy/db/migrate/20150608132621_create_string_field.rb
558
- - test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
559
- - test/dummy/db/migrate/20150608131430_create_integer_field.rb
560
- - test/dummy/db/migrate/20160627172951_create_tree.rb
561
- - test/dummy/db/migrate/20160628173505_add_timestamps.rb
562
- - test/dummy/db/migrate/20150608131610_create_float_field.rb
563
- - test/dummy/db/migrate/20160627172810_create_owner.rb
564
- - test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
565
533
  - test/dummy/db/migrate/20150608132159_create_boolean_field.rb
566
- - test/dummy/db/migrate/20170614141921_create_serialize_field.rb
567
- - test/dummy/db/migrate/20150608150016_create_has_many_field.rb
568
534
  - test/dummy/db/migrate/20150608133038_create_belongs_to_field.rb
569
- - test/dummy/db/migrate/20150608131603_create_decimal_field.rb
535
+ - test/dummy/db/migrate/20150623115554_create_has_many_class_name_field.rb
570
536
  - test/dummy/db/migrate/20181111162121_create_references_table.rb
537
+ - test/dummy/db/migrate/20150814081918_create_has_many_through_field.rb
538
+ - test/dummy/db/migrate/20160627172810_create_owner.rb
539
+ - test/dummy/db/migrate/20160627172951_create_tree.rb
540
+ - test/dummy/db/migrate/20150608150016_create_has_many_field.rb
541
+ - test/dummy/db/migrate/20150608131603_create_decimal_field.rb
571
542
  - test/dummy/db/migrate/20150608133044_create_has_one_field.rb
572
- - test/dummy/db/migrate/20150609114636_create_belongs_to_class_name_field.rb
573
- - test/dummy/README.rdoc
574
- - test/dummy/Rakefile
575
- - test/dummy/config/initializers/inflections.rb
576
- - test/dummy/config/initializers/filter_parameter_logging.rb
577
- - test/dummy/config/initializers/wrap_parameters.rb
543
+ - test/dummy/db/migrate/20160628173505_add_timestamps.rb
544
+ - test/dummy/db/migrate/20150616150629_create_polymorphic_field.rb
545
+ - test/dummy/config.ru
546
+ - test/dummy/bin/rake
547
+ - test/dummy/bin/setup
548
+ - test/dummy/bin/bundle
549
+ - test/dummy/bin/rails
550
+ - test/dummy/config/routes.rb
551
+ - test/dummy/config/boot.rb
578
552
  - test/dummy/config/initializers/mime_types.rb
579
553
  - test/dummy/config/initializers/assets.rb
580
- - test/dummy/config/initializers/backtrace_silencers.rb
581
554
  - test/dummy/config/initializers/session_store.rb
555
+ - test/dummy/config/initializers/wrap_parameters.rb
556
+ - test/dummy/config/initializers/filter_parameter_logging.rb
582
557
  - test/dummy/config/initializers/cookies_serializer.rb
583
- - test/dummy/config/secrets.yml
584
- - test/dummy/config/database.yml
585
- - test/dummy/config/boot.rb
558
+ - test/dummy/config/initializers/backtrace_silencers.rb
559
+ - test/dummy/config/initializers/inflections.rb
586
560
  - test/dummy/config/locales/en.yml
561
+ - test/dummy/config/secrets.yml
587
562
  - test/dummy/config/environment.rb
588
- - test/dummy/config/application.rb
589
563
  - test/dummy/config/environments/production.rb
590
564
  - test/dummy/config/environments/development.rb
591
565
  - test/dummy/config/environments/test.rb
592
- - test/dummy/config/routes.rb
566
+ - test/dummy/config/database.yml
567
+ - test/dummy/config/application.rb
568
+ - test/dummy/README.rdoc
569
+ - test/dummy/Rakefile
570
+ - test/dummy/public/favicon.ico
571
+ - test/dummy/public/404.html
572
+ - test/dummy/public/422.html
573
+ - test/dummy/public/500.html
574
+ - test/dummy/app/controllers/application_controller.rb
575
+ - test/dummy/app/views/layouts/application.html.erb
576
+ - test/dummy/app/helpers/application_helper.rb
577
+ - test/dummy/app/assets/stylesheets/application.css
578
+ - test/dummy/app/assets/config/manifest.js
579
+ - test/dummy/app/assets/javascripts/application.js
580
+ - test/dummy/app/models/boolean_field.rb
581
+ - test/dummy/app/models/decimal_field.rb
582
+ - test/dummy/app/models/date_field.rb
583
+ - test/dummy/app/models/tree.rb
584
+ - test/dummy/app/models/has_and_belongs_to_many_field.rb
585
+ - test/dummy/app/models/owner.rb
586
+ - test/dummy/app/models/belongs_to_class_name_field.rb
587
+ - test/dummy/app/models/has_many_through_field.rb
588
+ - test/dummy/app/models/float_field.rb
589
+ - test/dummy/app/models/polymorphic_field.rb
590
+ - test/dummy/app/models/has_one_field.rb
591
+ - test/dummy/app/models/has_many_class_name_field.rb
592
+ - test/dummy/app/models/belongs_to_field.rb
593
+ - test/dummy/app/models/integer_field.rb
594
+ - test/dummy/app/models/serialize_field.rb
595
+ - test/dummy/app/models/string_field.rb
596
+ - test/dummy/app/models/has_many_field.rb
597
+ - test/dummy/app/models/reference.rb
593
598
  - spec/spec_helper.rb
594
- - spec/rails_helper.rb
595
- - spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
596
- - spec/helpers/forest_liana/schema_helper_spec.rb
597
- - spec/helpers/forest_liana/query_helper_spec.rb
598
- - spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
599
- - spec/services/forest_liana/resources_getter_spec.rb
600
- - spec/services/forest_liana/filters_parser_spec.rb
601
599
  - spec/services/forest_liana/permissions_getter_spec.rb
600
+ - spec/services/forest_liana/resources_getter_spec.rb
602
601
  - spec/services/forest_liana/ip_whitelist_checker_spec.rb
602
+ - spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
603
+ - spec/services/forest_liana/filters_parser_spec.rb
603
604
  - spec/services/forest_liana/schema_adapter_spec.rb
605
+ - spec/services/forest_liana/line_stat_getter_spec.rb
604
606
  - spec/services/forest_liana/permissions_formatter_spec.rb
605
607
  - spec/services/forest_liana/permissions_checker_live_queries_spec.rb
606
608
  - spec/services/forest_liana/apimap_sorter_spec.rb
607
- - spec/services/forest_liana/permissions_checker_acl_enabled_spec.rb
608
- - spec/requests/actions_controller_spec.rb
609
- - spec/requests/stats_spec.rb
610
- - spec/requests/authentications_spec.rb
611
- - spec/requests/resources_spec.rb
612
- - spec/dummy/bin/bundle
613
- - spec/dummy/bin/setup
614
- - spec/dummy/bin/rake
615
- - spec/dummy/bin/rails
616
- - spec/dummy/config.ru
617
- - spec/dummy/app/assets/stylesheets/application.css
618
- - spec/dummy/app/assets/config/manifest.js
619
- - spec/dummy/app/assets/javascripts/application.js
620
- - spec/dummy/app/helpers/application_helper.rb
621
- - spec/dummy/app/views/layouts/application.html.erb
622
- - spec/dummy/app/models/user.rb
623
- - spec/dummy/app/models/island.rb
624
- - spec/dummy/app/models/location.rb
625
- - spec/dummy/app/models/tree.rb
626
- - spec/dummy/app/models/reference.rb
627
- - spec/dummy/app/config/routes.rb
628
- - spec/dummy/app/controllers/application_controller.rb
609
+ - spec/services/forest_liana/permissions_checker_acl_disabled_spec.rb
610
+ - spec/helpers/forest_liana/is_same_data_structure_helper_spec.rb
611
+ - spec/helpers/forest_liana/schema_helper_spec.rb
612
+ - spec/helpers/forest_liana/query_helper_spec.rb
629
613
  - spec/dummy/db/schema.rb
630
- - spec/dummy/db/migrate/20190226174951_create_tree.rb
631
- - spec/dummy/db/migrate/20210326140855_create_locations.rb
632
- - spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
633
- - spec/dummy/db/migrate/20210326110524_create_references.rb
614
+ - spec/dummy/db/migrate/20190226172951_create_user.rb
634
615
  - spec/dummy/db/migrate/20190716135241_add_type_to_user.rb
635
616
  - spec/dummy/db/migrate/20190226173051_create_isle.rb
636
- - spec/dummy/db/migrate/20190226172951_create_user.rb
637
- - spec/dummy/lib/forest_liana/collections/user.rb
638
- - spec/dummy/lib/forest_liana/collections/location.rb
639
- - spec/dummy/README.rdoc
640
- - spec/dummy/Rakefile
641
- - spec/dummy/config/initializers/inflections.rb
642
- - spec/dummy/config/initializers/filter_parameter_logging.rb
643
- - spec/dummy/config/initializers/wrap_parameters.rb
644
- - spec/dummy/config/initializers/mime_types.rb
617
+ - spec/dummy/db/migrate/20210511141752_create_owners.rb
618
+ - spec/dummy/db/migrate/20190716130830_add_age_to_tree.rb
619
+ - spec/dummy/db/migrate/20210326140855_create_locations.rb
620
+ - spec/dummy/db/migrate/20190226174951_create_tree.rb
621
+ - spec/dummy/db/migrate/20210526084712_create_products.rb
622
+ - spec/dummy/db/migrate/20210326110524_create_references.rb
623
+ - spec/dummy/config.ru
624
+ - spec/dummy/bin/rake
625
+ - spec/dummy/bin/setup
626
+ - spec/dummy/bin/bundle
627
+ - spec/dummy/bin/rails
628
+ - spec/dummy/config/routes.rb
629
+ - spec/dummy/config/boot.rb
645
630
  - spec/dummy/config/initializers/forest_liana.rb
631
+ - spec/dummy/config/initializers/mime_types.rb
646
632
  - spec/dummy/config/initializers/assets.rb
647
- - spec/dummy/config/initializers/backtrace_silencers.rb
648
633
  - spec/dummy/config/initializers/session_store.rb
634
+ - spec/dummy/config/initializers/wrap_parameters.rb
635
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
649
636
  - spec/dummy/config/initializers/cookies_serializer.rb
637
+ - spec/dummy/config/initializers/backtrace_silencers.rb
638
+ - spec/dummy/config/initializers/inflections.rb
650
639
  - spec/dummy/config/secrets.yml
651
- - spec/dummy/config/database.yml
652
- - spec/dummy/config/boot.rb
653
640
  - spec/dummy/config/environment.rb
654
- - spec/dummy/config/application.rb
655
641
  - spec/dummy/config/environments/production.rb
656
642
  - spec/dummy/config/environments/development.rb
657
643
  - spec/dummy/config/environments/test.rb
658
- - spec/dummy/config/routes.rb
644
+ - spec/dummy/config/database.yml
645
+ - spec/dummy/config/application.rb
646
+ - spec/dummy/lib/forest_liana/collections/user.rb
647
+ - spec/dummy/lib/forest_liana/collections/location.rb
648
+ - spec/dummy/README.rdoc
649
+ - spec/dummy/Rakefile
650
+ - spec/dummy/app/controllers/application_controller.rb
651
+ - spec/dummy/app/views/layouts/application.html.erb
652
+ - spec/dummy/app/config/routes.rb
653
+ - spec/dummy/app/helpers/application_helper.rb
654
+ - spec/dummy/app/assets/stylesheets/application.css
655
+ - spec/dummy/app/assets/config/manifest.js
656
+ - spec/dummy/app/assets/javascripts/application.js
657
+ - spec/dummy/app/models/tree.rb
658
+ - spec/dummy/app/models/owner.rb
659
+ - spec/dummy/app/models/user.rb
660
+ - spec/dummy/app/models/product.rb
661
+ - spec/dummy/app/models/location.rb
662
+ - spec/dummy/app/models/island.rb
663
+ - spec/dummy/app/models/reference.rb
664
+ - spec/rails_helper.rb
665
+ - spec/requests/stats_spec.rb
666
+ - spec/requests/resources_spec.rb
667
+ - spec/requests/actions_controller_spec.rb
668
+ - spec/requests/authentications_spec.rb