diff --git a/.annotaterb.yml b/.annotaterb.yml new file mode 100644 index 000000000..53ef9dc77 --- /dev/null +++ b/.annotaterb.yml @@ -0,0 +1,58 @@ +--- +:position: before +:position_in_additional_file_patterns: before +:position_in_class: before +:position_in_factory: before +:position_in_fixture: before +:position_in_routes: before +:position_in_serializer: before +:position_in_test: before +:classified_sort: true +:exclude_controllers: true +:exclude_factories: false +:exclude_fixtures: false +:exclude_helpers: true +:exclude_scaffolds: true +:exclude_serializers: false +:exclude_sti_subclasses: false +:exclude_tests: false +:force: false +:format_markdown: false +:format_rdoc: false +:format_yard: false +:frozen: false +:ignore_model_sub_dir: false +:ignore_unknown_models: false +:include_version: false +:show_check_constraints: false +:show_complete_foreign_keys: false +:show_foreign_keys: false +:show_indexes: false +:simple_indexes: false +:sort: false +:timestamp: false +:trace: false +:with_comment: true +:with_column_comments: true +:with_table_comments: true +:active_admin: false +:command: +:debug: false +:hide_default_column_types: '' +:hide_limit_column_types: '' +:ignore_columns: +:ignore_routes: +:models: true +:routes: false +:skip_on_db_migrate: false +:target_action: :do_annotations +:wrapper: +:wrapper_close: +:wrapper_open: +:classes_default_to_s: [] +:additional_file_patterns: [] +:model_dir: +- app/models +:require: [] +:root_dir: +- '' diff --git a/Gemfile b/Gemfile index 603cfd891..73eaf9a6d 100644 --- a/Gemfile +++ b/Gemfile @@ -2,13 +2,13 @@ source 'https://rubygems.org' ruby '3.3.6' -gem 'rails', '~> 7.1' +gem 'rails', '~> 8.0' gem 'rails-i18n' gem 'pg' gem 'with_advisory_lock' -gem 'puma', '~> 6.4' +gem 'puma' gem 'turbo-rails' @@ -26,7 +26,7 @@ gem 'good_job', '3.99' # intermediate version to avoid breaking changes # Auth gem 'omniauth-google-oauth2' -gem 'omniauth-saml', '~> 2.2.1' +gem 'omniauth-saml' gem 'omniauth-rails_csrf_protection' gem 'pundit' @@ -59,7 +59,7 @@ group :development, :test do end group :development do - gem 'annotate' + gem 'annotaterb' gem 'listen' gem 'web-console' gem 'solargraph' diff --git a/Gemfile.lock b/Gemfile.lock index dc151130f..27c1e6c28 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,66 +2,65 @@ GEM remote: https://rubygems.org/ specs: Ascii85 (2.0.1) - actioncable (7.2.2) - actionpack (= 7.2.2) - activesupport (= 7.2.2) + actioncable (8.0.0) + actionpack (= 8.0.0) + activesupport (= 8.0.0) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + actionmailbox (8.0.0) + actionpack (= 8.0.0) + activejob (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) mail (>= 2.8.0) - actionmailer (7.2.2) - actionpack (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activesupport (= 7.2.2) + actionmailer (8.0.0) + actionpack (= 8.0.0) + actionview (= 8.0.0) + activejob (= 8.0.0) + activesupport (= 8.0.0) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (7.2.2) - actionview (= 7.2.2) - activesupport (= 7.2.2) + actionpack (8.0.0) + actionview (= 8.0.0) + activesupport (= 8.0.0) nokogiri (>= 1.8.5) - racc - rack (>= 2.2.4, < 3.2) + rack (>= 2.2.4) rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (7.2.2) - actionpack (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + actiontext (8.0.0) + actionpack (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.2.2) - activesupport (= 7.2.2) + actionview (8.0.0) + activesupport (= 8.0.0) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.2.2) - activesupport (= 7.2.2) + activejob (8.0.0) + activesupport (= 8.0.0) globalid (>= 0.3.6) - activemodel (7.2.2) - activesupport (= 7.2.2) - activerecord (7.2.2) - activemodel (= 7.2.2) - activesupport (= 7.2.2) + activemodel (8.0.0) + activesupport (= 8.0.0) + activerecord (8.0.0) + activemodel (= 8.0.0) + activesupport (= 8.0.0) timeout (>= 0.4.0) - activestorage (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activesupport (= 7.2.2) + activestorage (8.0.0) + actionpack (= 8.0.0) + activejob (= 8.0.0) + activerecord (= 8.0.0) + activesupport (= 8.0.0) marcel (~> 1.0) - activesupport (7.2.2) + activesupport (8.0.0) base64 benchmark (>= 0.3) bigdecimal @@ -73,12 +72,11 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) afm (0.2.2) - annotate (3.2.0) - activerecord (>= 3.2, < 8.0) - rake (>= 10.4, < 14.0) + annotaterb (4.13.0) ast (2.4.2) backport (1.2.0) base64 (0.2.0) @@ -324,20 +322,20 @@ GEM rack (>= 1.3) rackup (2.2.1) rack (>= 3) - rails (7.2.2) - actioncable (= 7.2.2) - actionmailbox (= 7.2.2) - actionmailer (= 7.2.2) - actionpack (= 7.2.2) - actiontext (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activemodel (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + rails (8.0.0) + actioncable (= 8.0.0) + actionmailbox (= 8.0.0) + actionmailer (= 8.0.0) + actionpack (= 8.0.0) + actiontext (= 8.0.0) + actionview (= 8.0.0) + activejob (= 8.0.0) + activemodel (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) bundler (>= 1.15.0) - railties (= 7.2.2) + railties (= 8.0.0) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -345,12 +343,12 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - rails-i18n (7.0.10) + rails-i18n (8.0.1) i18n (>= 0.7, < 2) - railties (>= 6.0.0, < 8) - railties (7.2.2) - actionpack (= 7.2.2) - activesupport (= 7.2.2) + railties (>= 8.0.0, < 9) + railties (8.0.0) + actionpack (= 8.0.0) + activesupport (= 8.0.0) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -507,7 +505,7 @@ PLATFORMS x86_64-linux DEPENDENCIES - annotate + annotaterb bootsnap (>= 1.4.4) brakeman capybara @@ -526,16 +524,16 @@ DEPENDENCIES listen omniauth-google-oauth2 omniauth-rails_csrf_protection - omniauth-saml (~> 2.2.1) + omniauth-saml pdf-reader pg pg_search pry-byebug pry-rails - puma (~> 6.4) + puma pundit rack-attack - rails (~> 7.1) + rails (~> 8.0) rails-i18n rdbg rest-client diff --git a/db/schema.rb b/db/schema.rb index 3c1b30e46..62c38eb92 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,10 +10,10 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.2].define(version: 2024_11_25_070059) do +ActiveRecord::Schema[8.0].define(version: 2024_11_25_070059) do # These are extensions that must be enabled in order to support this database + enable_extension "pg_catalog.plpgsql" enable_extension "pgcrypto" - enable_extension "plpgsql" enable_extension "unaccent" # Custom types defined in this database. @@ -194,13 +194,18 @@ t.bigint "tenant_id", null: false t.bigint "author_id", null: false t.string "name", null: false - t.string "query", null: false + t.string "query" t.integer "position", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "type" + t.bigint "tag_id" + t.boolean "is_pinned", default: false, null: false t.index ["author_id"], name: "index_filters_on_author_id" - t.index ["tenant_id", "position"], name: "index_filters_on_tenant_id_and_position", unique: true + t.index ["is_pinned"], name: "index_filters_on_is_pinned" + t.index ["tag_id"], name: "index_filters_on_tag_id" t.index ["tenant_id"], name: "index_filters_on_tenant_id" + t.index ["type"], name: "index_filters_on_type" end create_table "folders", force: :cascade do |t| @@ -249,6 +254,7 @@ t.datetime "enqueued_at" t.datetime "discarded_at" t.datetime "finished_at" + t.datetime "jobs_finished_at" end create_table "good_job_executions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| @@ -459,7 +465,7 @@ t.datetime "delivered_at", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.datetime "last_message_delivered_at", null: false + t.datetime "last_message_delivered_at", precision: nil, null: false t.bigint "box_id", null: false t.index ["folder_id"], name: "index_message_threads_on_folder_id" end @@ -579,9 +585,9 @@ t.bigint "owner_id" t.string "external_name" t.string "type", null: false - t.string "icon" - t.integer "tag_groups_count", default: 0, null: false t.enum "color", enum_type: "color" + t.integer "tag_groups_count", default: 0, null: false + t.string "icon" t.index "tenant_id, type, lower((name)::text)", name: "index_tags_on_tenant_id_and_type_and_lowercase_name", unique: true t.index ["owner_id"], name: "index_tags_on_owner_id" t.index ["tenant_id", "type"], name: "signings_tags", unique: true, where: "((type)::text = ANY (ARRAY[('SignatureRequestedTag'::character varying)::text, ('SignedTag'::character varying)::text]))" @@ -625,6 +631,17 @@ t.datetime "updated_at", null: false end + create_table "user_item_visibilities", force: :cascade do |t| + t.bigint "user_id", null: false + t.string "user_item_type", null: false + t.bigint "user_item_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "visible", default: true, null: false + t.integer "position" + t.index ["user_id"], name: "index_user_item_visibilities_on_user_id" + end + create_table "users", force: :cascade do |t| t.bigint "tenant_id" t.string "email", null: false @@ -655,6 +672,7 @@ add_foreign_key "filter_subscriptions", "filters" add_foreign_key "filter_subscriptions", "tenants" add_foreign_key "filter_subscriptions", "users" + add_foreign_key "filters", "tags" add_foreign_key "filters", "tenants", on_delete: :cascade add_foreign_key "filters", "users", column: "author_id", on_delete: :cascade add_foreign_key "folders", "boxes" @@ -695,5 +713,6 @@ add_foreign_key "tags", "tenants" add_foreign_key "tags", "users", column: "owner_id" add_foreign_key "upvs_form_related_documents", "upvs_forms" + add_foreign_key "user_item_visibilities", "users" add_foreign_key "users", "tenants" end diff --git a/lib/tasks/annotate_rb.rake b/lib/tasks/annotate_rb.rake new file mode 100644 index 000000000..1ad0ec39e --- /dev/null +++ b/lib/tasks/annotate_rb.rake @@ -0,0 +1,8 @@ +# This rake task was added by annotate_rb gem. + +# Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this +if Rails.env.development? && ENV["ANNOTATERB_SKIP_ON_DB_TASKS"].nil? + require "annotate_rb" + + AnnotateRb::Core.load_rake_tasks +end diff --git a/lib/tasks/auto_annotate_models.rake b/lib/tasks/auto_annotate_models.rake deleted file mode 100644 index 8c4e3ff8a..000000000 --- a/lib/tasks/auto_annotate_models.rake +++ /dev/null @@ -1,59 +0,0 @@ -# NOTE: only doing this in development as some production environments (Heroku) -# NOTE: are sensitive to local FS writes, and besides -- it's just not proper -# NOTE: to have a dev-mode tool do its thing in production. -if Rails.env.development? - require 'annotate' - task :set_annotation_options do - # You can override any of these by setting an environment variable of the - # same name. - Annotate.set_defaults( - 'active_admin' => 'false', - 'additional_file_patterns' => [], - 'routes' => 'false', - 'models' => 'true', - 'position_in_routes' => 'before', - 'position_in_class' => 'before', - 'position_in_test' => 'before', - 'position_in_fixture' => 'before', - 'position_in_factory' => 'before', - 'position_in_serializer' => 'before', - 'show_foreign_keys' => 'false', - 'show_complete_foreign_keys' => 'false', - 'show_indexes' => 'false', - 'simple_indexes' => 'false', - 'model_dir' => 'app/models', - 'root_dir' => '', - 'include_version' => 'false', - 'require' => '', - 'exclude_tests' => 'true', - 'exclude_fixtures' => 'true', - 'exclude_factories' => 'true', - 'exclude_serializers' => 'true', - 'exclude_scaffolds' => 'true', - 'exclude_controllers' => 'true', - 'exclude_helpers' => 'true', - 'exclude_sti_subclasses' => 'false', - 'ignore_model_sub_dir' => 'false', - 'ignore_columns' => nil, - 'ignore_routes' => nil, - 'ignore_unknown_models' => 'false', - 'hide_limit_column_types' => 'integer,bigint,boolean', - 'hide_default_column_types' => 'json,jsonb,hstore', - 'skip_on_db_migrate' => 'false', - 'format_bare' => 'true', - 'format_rdoc' => 'false', - 'format_yard' => 'false', - 'format_markdown' => 'false', - 'sort' => 'true', - 'force' => 'false', - 'frozen' => 'false', - 'classified_sort' => 'true', - 'trace' => 'false', - 'wrapper_open' => nil, - 'wrapper_close' => nil, - 'with_comment' => 'true' - ) - end - - Annotate.load_tasks -end diff --git a/test/fixtures/api_connections.yml b/test/fixtures/api_connections.yml index aa6607339..5ab8b5f0c 100644 --- a/test/fixtures/api_connections.yml +++ b/test/fixtures/api_connections.yml @@ -1,5 +1,19 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: api_connections +# +# id :bigint not null, primary key +# api_token_private_key :string not null +# obo :uuid +# settings :jsonb +# sub :string not null +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# govbox_api_api_connection1: sub: sub1 obo: <%= SecureRandom.uuid %> diff --git a/test/fixtures/automation/actions.yml b/test/fixtures/automation/actions.yml index c96ba8e30..dbd38a75a 100644 --- a/test/fixtures/automation/actions.yml +++ b/test/fixtures/automation/actions.yml @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: automation_actions +# +# id :bigint not null, primary key +# action_object_type :string +# type :string +# value :string +# created_at :datetime not null +# updated_at :datetime not null +# action_object_id :bigint +# automation_rule_id :bigint not null +# one_one: automation_rule: one type: Automation::AddMessageThreadTagAction diff --git a/test/fixtures/automation/conditions.yml b/test/fixtures/automation/conditions.yml index 2007db803..f026cb6a1 100644 --- a/test/fixtures/automation/conditions.yml +++ b/test/fixtures/automation/conditions.yml @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: automation_conditions +# +# id :bigint not null, primary key +# attr :string +# condition_object_type :string +# type :string +# value :string +# created_at :datetime not null +# updated_at :datetime not null +# automation_rule_id :bigint not null +# condition_object_id :bigint +# one: automation_rule: one type: Automation::ContainsCondition diff --git a/test/fixtures/automation/rules.yml b/test/fixtures/automation/rules.yml index f3d16276f..6732b967f 100644 --- a/test/fixtures/automation/rules.yml +++ b/test/fixtures/automation/rules.yml @@ -1,5 +1,17 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: automation_rules +# +# id :bigint not null, primary key +# name :string not null +# trigger_event :string not null +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint not null +# user_id :bigint not null +# one: user: basic tenant: ssd diff --git a/test/fixtures/automation/webhooks.yml b/test/fixtures/automation/webhooks.yml index 6dc799dd3..722f3ccb7 100644 --- a/test/fixtures/automation/webhooks.yml +++ b/test/fixtures/automation/webhooks.yml @@ -1,5 +1,16 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: automation_webhooks +# +# id :bigint not null, primary key +# name :string not null +# url :string not null +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint not null +# one: name: Webhook 1 url: https://example.com/webhook1 diff --git a/test/fixtures/boxes.yml b/test/fixtures/boxes.yml index 87c00c55e..3b788083c 100644 --- a/test/fixtures/boxes.yml +++ b/test/fixtures/boxes.yml @@ -1,5 +1,22 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: boxes +# +# id :bigint not null, primary key +# color :enum +# name :string not null +# settings :jsonb +# short_name :string +# syncable :boolean default(TRUE), not null +# type :string +# uri :string not null +# created_at :datetime not null +# updated_at :datetime not null +# api_connection_id :bigint +# tenant_id :bigint not null +# ssd_main: name: SSD main uri: SSDMainURI diff --git a/test/fixtures/filter_subscriptions.yml b/test/fixtures/filter_subscriptions.yml index b88359dbb..7f7987b8e 100644 --- a/test/fixtures/filter_subscriptions.yml +++ b/test/fixtures/filter_subscriptions.yml @@ -1,2 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: filter_subscriptions +# +# id :bigint not null, primary key +# events :string default([]), not null, is an Array +# last_notify_run_at :datetime +# created_at :datetime not null +# updated_at :datetime not null +# filter_id :bigint not null +# tenant_id :bigint not null +# user_id :bigint not null +# diff --git a/test/fixtures/filters.yml b/test/fixtures/filters.yml index df801de55..370b2a969 100644 --- a/test/fixtures/filters.yml +++ b/test/fixtures/filters.yml @@ -1,5 +1,21 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: filters +# +# id :bigint not null, primary key +# is_pinned :boolean default(FALSE), not null +# name :string not null +# position :integer not null +# query :string +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint not null +# tag_id :bigint +# tenant_id :bigint not null +# one: tenant: ssd author: basic diff --git a/test/fixtures/fs/form_related_documents.yml b/test/fixtures/fs/form_related_documents.yml index 1af00d39a..9d3de8b73 100644 --- a/test/fixtures/fs/form_related_documents.yml +++ b/test/fixtures/fs/form_related_documents.yml @@ -1,5 +1,17 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: fs_form_related_documents +# +# id :bigint not null, primary key +# data :string not null +# document_type :string not null +# language :string not null +# created_at :datetime not null +# updated_at :datetime not null +# fs_form_id :bigint not null +# V2Pv21_xsd: document_type: CLS_F_XSD_EDOC language: sk diff --git a/test/fixtures/fs/forms.yml b/test/fixtures/fs/forms.yml index 49f19feb7..8f20fff61 100644 --- a/test/fixtures/fs/forms.yml +++ b/test/fixtures/fs/forms.yml @@ -1,5 +1,22 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: fs_forms +# +# id :bigint not null, primary key +# ez_signature :boolean +# group_name :string +# identifier :string not null +# name :string not null +# number_identifier :integer +# signature_required :boolean +# slug :string +# submission_type_identifier :string +# subtype_name :string +# created_at :datetime not null +# updated_at :datetime not null +# V2Pv21: identifier: '2682_712' name: Vyhlásenie o poukázaní sumy do výšky 2% (3%) zaplatenej dane za zdaňovacie obdobie 2021 diff --git a/test/fixtures/govbox/folders.yml b/test/fixtures/govbox/folders.yml index 5287801ec..f96fbf809 100644 --- a/test/fixtures/govbox/folders.yml +++ b/test/fixtures/govbox/folders.yml @@ -1,5 +1,18 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: govbox_folders +# +# id :bigint not null, primary key +# name :string not null +# system :boolean not null +# created_at :datetime not null +# updated_at :datetime not null +# box_id :bigint not null +# edesk_folder_id :integer not null +# parent_folder_id :bigint +# ssd_one: edesk_folder_id: 123456 box: ssd_main diff --git a/test/fixtures/govbox/messages.yml b/test/fixtures/govbox/messages.yml index 1ba47166f..3fca8d0d3 100644 --- a/test/fixtures/govbox/messages.yml +++ b/test/fixtures/govbox/messages.yml @@ -1,5 +1,20 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: govbox_messages +# +# id :bigint not null, primary key +# delivered_at :datetime not null +# edesk_class :string not null +# payload :json not null +# created_at :datetime not null +# updated_at :datetime not null +# correlation_id :uuid not null +# edesk_message_id :bigint not null +# folder_id :bigint not null +# message_id :uuid not null +# one: message_id: <%= SecureRandom.uuid %> correlation_id: a50cbb56-4da8-4499-b57c-e53c41b44930 diff --git a/test/fixtures/group_memberships.yml b/test/fixtures/group_memberships.yml index b7a97d927..116297e7a 100644 --- a/test/fixtures/group_memberships.yml +++ b/test/fixtures/group_memberships.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: group_memberships +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# group_id :bigint not null +# user_id :bigint not null +# ssd_basic_basic_user: user: basic group: ssd_basic_user diff --git a/test/fixtures/groups.yml b/test/fixtures/groups.yml index 5137aa621..60b9bc1e6 100644 --- a/test/fixtures/groups.yml +++ b/test/fixtures/groups.yml @@ -1,5 +1,17 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: groups +# +# id :bigint not null, primary key +# group_type :enum +# name :string not null +# type :string not null +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint not null +# ssd_all: name: all type: AllGroup diff --git a/test/fixtures/message_object_data.yml b/test/fixtures/message_object_data.yml index d824a1f31..04ed16c1c 100644 --- a/test/fixtures/message_object_data.yml +++ b/test/fixtures/message_object_data.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_object_data +# +# id :bigint not null, primary key +# blob :binary not null +# created_at :datetime not null +# updated_at :datetime not null +# message_object_id :bigint not null +# one: message_object: ssd_main_general_one_attachment blob: MyText diff --git a/test/fixtures/message_objects.yml b/test/fixtures/message_objects.yml index 4c5628b0e..b2ab3ad80 100644 --- a/test/fixtures/message_objects.yml +++ b/test/fixtures/message_objects.yml @@ -1,5 +1,20 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_objects +# +# id :bigint not null, primary key +# is_signed :boolean +# mimetype :string +# name :string +# object_type :string not null +# uuid :uuid +# visualizable :boolean +# created_at :datetime not null +# updated_at :datetime not null +# message_id :bigint not null +# ssd_main_general_one_attachment: message: ssd_main_general_one name: MyString diff --git a/test/fixtures/message_objects_tags.yml b/test/fixtures/message_objects_tags.yml index c77cdc905..72c3fe33b 100644 --- a/test/fixtures/message_objects_tags.yml +++ b/test/fixtures/message_objects_tags.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_objects_tags +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# message_object_id :bigint not null +# tag_id :bigint not null +# ssd_main_draft_to_be_signed_draft_one_form_signature_requested: message_object: ssd_main_draft_to_be_signed_draft_one_form tag: ssd_signer_user_signature_requested diff --git a/test/fixtures/message_thread_merge_identifiers.yml b/test/fixtures/message_thread_merge_identifiers.yml index 5951701c6..51a23b81f 100644 --- a/test/fixtures/message_thread_merge_identifiers.yml +++ b/test/fixtures/message_thread_merge_identifiers.yml @@ -1,5 +1,16 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_thread_merge_identifiers +# +# id :bigint not null, primary key +# uuid :uuid not null +# created_at :datetime not null +# updated_at :datetime not null +# box_id :bigint not null +# message_thread_id :bigint not null +# ssd_main_general_one: message_thread: ssd_main_general uuid: <%= SecureRandom.uuid %> diff --git a/test/fixtures/message_thread_notes.yml b/test/fixtures/message_thread_notes.yml index 431bb6cb8..0900036f6 100644 --- a/test/fixtures/message_thread_notes.yml +++ b/test/fixtures/message_thread_notes.yml @@ -1,3 +1,13 @@ +# == Schema Information +# +# Table name: message_thread_notes +# +# id :bigint not null, primary key +# note :text +# created_at :datetime not null +# updated_at :datetime not null +# message_thread_id :bigint not null +# one: message_thread: ssd_main_general note: "Insider Note1" diff --git a/test/fixtures/message_threads.yml b/test/fixtures/message_threads.yml index 4cc60e30a..948d4af16 100644 --- a/test/fixtures/message_threads.yml +++ b/test/fixtures/message_threads.yml @@ -1,5 +1,19 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_threads +# +# id :bigint not null, primary key +# delivered_at :datetime not null +# last_message_delivered_at :datetime not null +# original_title :string not null +# title :string not null +# created_at :datetime not null +# updated_at :datetime not null +# box_id :bigint not null +# folder_id :bigint +# ssd_main_general: box: ssd_main title: General agenda SSD diff --git a/test/fixtures/message_threads_tags.yml b/test/fixtures/message_threads_tags.yml index 28b65ed05..c946dfca3 100644 --- a/test/fixtures/message_threads_tags.yml +++ b/test/fixtures/message_threads_tags.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_threads_tags +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# message_thread_id :bigint not null +# tag_id :bigint not null +# ssd_main_general_finance: message_thread: ssd_main_general tag: ssd_finance diff --git a/test/fixtures/messages.yml b/test/fixtures/messages.yml index 7c252063f..65d41cc8e 100644 --- a/test/fixtures/messages.yml +++ b/test/fixtures/messages.yml @@ -1,5 +1,28 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: messages +# +# id :bigint not null, primary key +# collapsed :boolean default(FALSE), not null +# delivered_at :datetime not null +# html_visualization :text +# metadata :json +# outbox :boolean default(FALSE), not null +# read :boolean default(FALSE), not null +# recipient_name :string +# replyable :boolean default(TRUE), not null +# sender_name :string +# title :string +# type :string +# uuid :uuid not null +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint +# import_id :bigint +# message_thread_id :bigint not null +# ssd_main_general_one: uuid: <%= SecureRandom.uuid %> title: The First Message diff --git a/test/fixtures/messages_tags.yml b/test/fixtures/messages_tags.yml index 1afc0d818..50a1412fd 100644 --- a/test/fixtures/messages_tags.yml +++ b/test/fixtures/messages_tags.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: messages_tags +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# message_id :bigint not null +# tag_id :bigint not null +# ssd_main_general_one_external: message: ssd_main_general_one tag: ssd_external diff --git a/test/fixtures/notifications.yml b/test/fixtures/notifications.yml index a90503903..14e9e10f1 100644 --- a/test/fixtures/notifications.yml +++ b/test/fixtures/notifications.yml @@ -1 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: notifications +# +# id :bigint not null, primary key +# filter_name :string not null +# type :string not null +# created_at :datetime not null +# updated_at :datetime not null +# filter_subscription_id :bigint +# message_id :bigint +# message_thread_id :bigint not null +# user_id :bigint not null +# diff --git a/test/fixtures/tag_groups.yml b/test/fixtures/tag_groups.yml index 856268e80..ef9f3c5ed 100644 --- a/test/fixtures/tag_groups.yml +++ b/test/fixtures/tag_groups.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: tag_groups +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# group_id :bigint not null +# tag_id :bigint not null +# drafts_basic_user: tag: ssd_basic_user_drafts group: ssd_basic_user diff --git a/test/fixtures/tags.yml b/test/fixtures/tags.yml index b8c4d4775..9cd800970 100644 --- a/test/fixtures/tags.yml +++ b/test/fixtures/tags.yml @@ -1,5 +1,22 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: tags +# +# id :bigint not null, primary key +# color :enum +# external_name :string +# icon :string +# name :string not null +# tag_groups_count :integer default(0), not null +# type :string not null +# visible :boolean default(TRUE), not null +# created_at :datetime not null +# updated_at :datetime not null +# owner_id :bigint +# tenant_id :bigint not null +# ssd_finance: name: Finance type: SimpleTag diff --git a/test/fixtures/tenants.yml b/test/fixtures/tenants.yml index 67893b680..118b8fa4e 100644 --- a/test/fixtures/tenants.yml +++ b/test/fixtures/tenants.yml @@ -1,5 +1,16 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: tenants +# +# id :bigint not null, primary key +# api_token_public_key :string +# feature_flags :string default([]), is an Array +# name :string not null +# created_at :datetime not null +# updated_at :datetime not null +# ssd: name: SSD feature_flags: diff --git a/test/fixtures/upvs/form_related_documents.yml b/test/fixtures/upvs/form_related_documents.yml index 4e5508d12..d97954848 100644 --- a/test/fixtures/upvs/form_related_documents.yml +++ b/test/fixtures/upvs/form_related_documents.yml @@ -1,5 +1,17 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: upvs_form_related_documents +# +# id :bigint not null, primary key +# data :string not null +# document_type :string not null +# language :string not null +# created_at :datetime not null +# updated_at :datetime not null +# upvs_form_id :bigint not null +# general_agenda_xsd: data: document_type: CLS_F_XSD_EDOC @@ -760,4 +772,4 @@ fs_eud_v1_0_fo_xsl: document_type: CLS_F_XSL_FO language: sk - form: fs_eud_v1_0 \ No newline at end of file + form: fs_eud_v1_0 diff --git a/test/fixtures/upvs/forms.yml b/test/fixtures/upvs/forms.yml index db17d8193..dfd77ddc5 100644 --- a/test/fixtures/upvs/forms.yml +++ b/test/fixtures/upvs/forms.yml @@ -1,5 +1,15 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: upvs_forms +# +# id :bigint not null, primary key +# identifier :string not null +# version :string not null +# created_at :datetime not null +# updated_at :datetime not null +# general_agenda: identifier: App.GeneralAgenda version: 1.9 diff --git a/test/fixtures/upvs/message_templates.yml b/test/fixtures/upvs/message_templates.yml index dbea37d6b..d6ac969ab 100644 --- a/test/fixtures/upvs/message_templates.yml +++ b/test/fixtures/upvs/message_templates.yml @@ -1,5 +1,19 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: message_templates +# +# id :bigint not null, primary key +# content :text not null +# metadata :jsonb +# name :string not null +# system :boolean default(FALSE), not null +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# message_reply: content: {{ Predmet:text_field }} diff --git a/test/fixtures/upvs/service_with_form_allow_rules.yml b/test/fixtures/upvs/service_with_form_allow_rules.yml index f927ddb72..ba956ffa5 100644 --- a/test/fixtures/upvs/service_with_form_allow_rules.yml +++ b/test/fixtures/upvs/service_with_form_allow_rules.yml @@ -1,5 +1,18 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: upvs_service_with_form_allow_rules +# +# id :bigint not null, primary key +# institution_name :string +# institution_uri :string not null +# name :string +# schema_url :string +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# general_agenda: institution_name: Test OVM identity institution_uri: ico://sk/12345678 diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index 67f5bfc6b..f7b568f4f 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -1,5 +1,19 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html +# == Schema Information +# +# Table name: users +# +# id :bigint not null, primary key +# email :string not null +# name :string not null +# notifications_last_opened_at :datetime +# notifications_reset_at :datetime +# saml_identifier :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# basic: name: Basic user email: basic_user@email.com diff --git a/test/models/api_connection_test.rb b/test/models/api_connection_test.rb index f6d510f40..5ff33855a 100644 --- a/test/models/api_connection_test.rb +++ b/test/models/api_connection_test.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: api_connections +# +# id :bigint not null, primary key +# api_token_private_key :string not null +# obo :uuid +# settings :jsonb +# sub :string not null +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# require "test_helper" class ApiConnectionTest < ActiveSupport::TestCase diff --git a/test/models/automation/rule_test.rb b/test/models/automation/rule_test.rb index 4f01ce7fa..bff51974e 100644 --- a/test/models/automation/rule_test.rb +++ b/test/models/automation/rule_test.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: automation_rules +# +# id :bigint not null, primary key +# name :string not null +# trigger_event :string not null +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint not null +# user_id :bigint not null +# require 'test_helper' class Automation::RuleTest < ActiveSupport::TestCase diff --git a/test/models/automation/webhook_test.rb b/test/models/automation/webhook_test.rb index 8c3e5fea7..f64a55cfb 100644 --- a/test/models/automation/webhook_test.rb +++ b/test/models/automation/webhook_test.rb @@ -1,3 +1,14 @@ +# == Schema Information +# +# Table name: automation_webhooks +# +# id :bigint not null, primary key +# name :string not null +# url :string not null +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint not null +# require "test_helper" class Automation::WebhookTest < ActiveSupport::TestCase diff --git a/test/models/box_test.rb b/test/models/box_test.rb index 5e6d14296..ab70d1a63 100644 --- a/test/models/box_test.rb +++ b/test/models/box_test.rb @@ -1,3 +1,20 @@ +# == Schema Information +# +# Table name: boxes +# +# id :bigint not null, primary key +# color :enum +# name :string not null +# settings :jsonb +# short_name :string +# syncable :boolean default(TRUE), not null +# type :string +# uri :string not null +# created_at :datetime not null +# updated_at :datetime not null +# api_connection_id :bigint +# tenant_id :bigint not null +# require "test_helper" class BoxTest < ActiveSupport::TestCase diff --git a/test/models/everything_tag_test.rb b/test/models/everything_tag_test.rb index 5ec2dca4f..6b602c9f0 100644 --- a/test/models/everything_tag_test.rb +++ b/test/models/everything_tag_test.rb @@ -1,3 +1,20 @@ +# == Schema Information +# +# Table name: tags +# +# id :bigint not null, primary key +# color :enum +# external_name :string +# icon :string +# name :string not null +# tag_groups_count :integer default(0), not null +# type :string not null +# visible :boolean default(TRUE), not null +# created_at :datetime not null +# updated_at :datetime not null +# owner_id :bigint +# tenant_id :bigint not null +# require "test_helper" class EverythingTagTest < ActiveSupport::TestCase diff --git a/test/models/filter_subscription_test.rb b/test/models/filter_subscription_test.rb index 134d1df36..37c576afc 100644 --- a/test/models/filter_subscription_test.rb +++ b/test/models/filter_subscription_test.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: filter_subscriptions +# +# id :bigint not null, primary key +# events :string default([]), not null, is an Array +# last_notify_run_at :datetime +# created_at :datetime not null +# updated_at :datetime not null +# filter_id :bigint not null +# tenant_id :bigint not null +# user_id :bigint not null +# require "test_helper" class FilterSubscriptionTest < ActiveSupport::TestCase diff --git a/test/models/filter_test.rb b/test/models/filter_test.rb index f9dee97f8..e2cb2bdfc 100644 --- a/test/models/filter_test.rb +++ b/test/models/filter_test.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: filters +# +# id :bigint not null, primary key +# is_pinned :boolean default(FALSE), not null +# name :string not null +# position :integer not null +# query :string +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint not null +# tag_id :bigint +# tenant_id :bigint not null +# require "test_helper" class FilterTest < ActiveSupport::TestCase diff --git a/test/models/fs/api_connection_test.rb b/test/models/fs/api_connection_test.rb index 5aa7430c7..532fbe532 100644 --- a/test/models/fs/api_connection_test.rb +++ b/test/models/fs/api_connection_test.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: api_connections +# +# id :bigint not null, primary key +# api_token_private_key :string not null +# obo :uuid +# settings :jsonb +# sub :string not null +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# require "test_helper" class Fs::ApiConnectionTest < ActiveSupport::TestCase diff --git a/test/models/fs/box_test.rb b/test/models/fs/box_test.rb index c9221af32..78d8a03f1 100644 --- a/test/models/fs/box_test.rb +++ b/test/models/fs/box_test.rb @@ -1,5 +1,22 @@ # frozen_string_literal: true +# == Schema Information +# +# Table name: boxes +# +# id :bigint not null, primary key +# color :enum +# name :string not null +# settings :jsonb +# short_name :string +# syncable :boolean default(TRUE), not null +# type :string +# uri :string not null +# created_at :datetime not null +# updated_at :datetime not null +# api_connection_id :bigint +# tenant_id :bigint not null +# require "test_helper" class Fs::BoxTest < ActiveSupport::TestCase diff --git a/test/models/fs/message_draft_test.rb b/test/models/fs/message_draft_test.rb index b6a442740..8921ffc76 100644 --- a/test/models/fs/message_draft_test.rb +++ b/test/models/fs/message_draft_test.rb @@ -1,5 +1,28 @@ # frozen_string_literal: true +# == Schema Information +# +# Table name: messages +# +# id :bigint not null, primary key +# collapsed :boolean default(FALSE), not null +# delivered_at :datetime not null +# html_visualization :text +# metadata :json +# outbox :boolean default(FALSE), not null +# read :boolean default(FALSE), not null +# recipient_name :string +# replyable :boolean default(TRUE), not null +# sender_name :string +# title :string +# type :string +# uuid :uuid not null +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint +# import_id :bigint +# message_thread_id :bigint not null +# require "test_helper" class Fs::MessageDraftTest < ActiveSupport::TestCase diff --git a/test/models/govbox/folder_test.rb b/test/models/govbox/folder_test.rb index 610c32514..acbcea382 100644 --- a/test/models/govbox/folder_test.rb +++ b/test/models/govbox/folder_test.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: govbox_folders +# +# id :bigint not null, primary key +# name :string not null +# system :boolean not null +# created_at :datetime not null +# updated_at :datetime not null +# box_id :bigint not null +# edesk_folder_id :integer not null +# parent_folder_id :bigint +# require "test_helper" class Govbox::FolderTest < ActiveSupport::TestCase diff --git a/test/models/govbox/message_test.rb b/test/models/govbox/message_test.rb index b73a07764..916eba87e 100644 --- a/test/models/govbox/message_test.rb +++ b/test/models/govbox/message_test.rb @@ -1,3 +1,18 @@ +# == Schema Information +# +# Table name: govbox_messages +# +# id :bigint not null, primary key +# delivered_at :datetime not null +# edesk_class :string not null +# payload :json not null +# created_at :datetime not null +# updated_at :datetime not null +# correlation_id :uuid not null +# edesk_message_id :bigint not null +# folder_id :bigint not null +# message_id :uuid not null +# require "test_helper" class Govbox::MessageTest < ActiveSupport::TestCase diff --git a/test/models/group_membership_test.rb b/test/models/group_membership_test.rb index 6509ed7af..591da8d35 100644 --- a/test/models/group_membership_test.rb +++ b/test/models/group_membership_test.rb @@ -1,3 +1,13 @@ +# == Schema Information +# +# Table name: group_memberships +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# group_id :bigint not null +# user_id :bigint not null +# require "test_helper" class GroupMembershipTest < ActiveSupport::TestCase diff --git a/test/models/message_draft_test.rb b/test/models/message_draft_test.rb index 238313699..cf5462f2a 100644 --- a/test/models/message_draft_test.rb +++ b/test/models/message_draft_test.rb @@ -1,3 +1,26 @@ +# == Schema Information +# +# Table name: messages +# +# id :bigint not null, primary key +# collapsed :boolean default(FALSE), not null +# delivered_at :datetime not null +# html_visualization :text +# metadata :json +# outbox :boolean default(FALSE), not null +# read :boolean default(FALSE), not null +# recipient_name :string +# replyable :boolean default(TRUE), not null +# sender_name :string +# title :string +# type :string +# uuid :uuid not null +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint +# import_id :bigint +# message_thread_id :bigint not null +# require "test_helper" class MessageDraftTest < ActiveSupport::TestCase diff --git a/test/models/message_object_datum_test.rb b/test/models/message_object_datum_test.rb index 95585f48f..de3f43a90 100644 --- a/test/models/message_object_datum_test.rb +++ b/test/models/message_object_datum_test.rb @@ -1,3 +1,13 @@ +# == Schema Information +# +# Table name: message_object_data +# +# id :bigint not null, primary key +# blob :binary not null +# created_at :datetime not null +# updated_at :datetime not null +# message_object_id :bigint not null +# require "test_helper" class MessageObjectDatumTest < ActiveSupport::TestCase diff --git a/test/models/message_object_test.rb b/test/models/message_object_test.rb index f3e109145..65eb04ded 100644 --- a/test/models/message_object_test.rb +++ b/test/models/message_object_test.rb @@ -1,3 +1,18 @@ +# == Schema Information +# +# Table name: message_objects +# +# id :bigint not null, primary key +# is_signed :boolean +# mimetype :string +# name :string +# object_type :string not null +# uuid :uuid +# visualizable :boolean +# created_at :datetime not null +# updated_at :datetime not null +# message_id :bigint not null +# require "test_helper" class MessageObjectTest < ActiveSupport::TestCase diff --git a/test/models/message_objects_tag_test.rb b/test/models/message_objects_tag_test.rb index 0c9420767..40f7d7f1b 100644 --- a/test/models/message_objects_tag_test.rb +++ b/test/models/message_objects_tag_test.rb @@ -1,3 +1,13 @@ +# == Schema Information +# +# Table name: message_objects_tags +# +# id :bigint not null, primary key +# created_at :datetime not null +# updated_at :datetime not null +# message_object_id :bigint not null +# tag_id :bigint not null +# require "test_helper" class MessageObjectsTagTest < ActiveSupport::TestCase diff --git a/test/models/message_test.rb b/test/models/message_test.rb index 05fcc517d..1e7ab5b44 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -1,3 +1,26 @@ +# == Schema Information +# +# Table name: messages +# +# id :bigint not null, primary key +# collapsed :boolean default(FALSE), not null +# delivered_at :datetime not null +# html_visualization :text +# metadata :json +# outbox :boolean default(FALSE), not null +# read :boolean default(FALSE), not null +# recipient_name :string +# replyable :boolean default(TRUE), not null +# sender_name :string +# title :string +# type :string +# uuid :uuid not null +# created_at :datetime not null +# updated_at :datetime not null +# author_id :bigint +# import_id :bigint +# message_thread_id :bigint not null +# require "test_helper" class MessageTest < ActiveSupport::TestCase diff --git a/test/models/message_thread_test.rb b/test/models/message_thread_test.rb index 814014026..f286900f4 100644 --- a/test/models/message_thread_test.rb +++ b/test/models/message_thread_test.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: message_threads +# +# id :bigint not null, primary key +# delivered_at :datetime not null +# last_message_delivered_at :datetime not null +# original_title :string not null +# title :string not null +# created_at :datetime not null +# updated_at :datetime not null +# box_id :bigint not null +# folder_id :bigint +# require "test_helper" class MessageThreadTest < ActiveSupport::TestCase diff --git a/test/models/notification_test.rb b/test/models/notification_test.rb index a76e08d66..d0a7218d4 100644 --- a/test/models/notification_test.rb +++ b/test/models/notification_test.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: notifications +# +# id :bigint not null, primary key +# filter_name :string not null +# type :string not null +# created_at :datetime not null +# updated_at :datetime not null +# filter_subscription_id :bigint +# message_id :bigint +# message_thread_id :bigint not null +# user_id :bigint not null +# require "test_helper" class NotificationTest < ActiveSupport::TestCase diff --git a/test/models/tag_test.rb b/test/models/tag_test.rb index b4abcd82f..590b3903d 100644 --- a/test/models/tag_test.rb +++ b/test/models/tag_test.rb @@ -1,3 +1,20 @@ +# == Schema Information +# +# Table name: tags +# +# id :bigint not null, primary key +# color :enum +# external_name :string +# icon :string +# name :string not null +# tag_groups_count :integer default(0), not null +# type :string not null +# visible :boolean default(TRUE), not null +# created_at :datetime not null +# updated_at :datetime not null +# owner_id :bigint +# tenant_id :bigint not null +# require "test_helper" class TagTest < ActiveSupport::TestCase diff --git a/test/models/tenant_test.rb b/test/models/tenant_test.rb index 8d992e867..442aad5df 100644 --- a/test/models/tenant_test.rb +++ b/test/models/tenant_test.rb @@ -1,3 +1,14 @@ +# == Schema Information +# +# Table name: tenants +# +# id :bigint not null, primary key +# api_token_public_key :string +# feature_flags :string default([]), is an Array +# name :string not null +# created_at :datetime not null +# updated_at :datetime not null +# require "test_helper" class TenantTest < ActiveSupport::TestCase diff --git a/test/models/upvs/message_template_test.rb b/test/models/upvs/message_template_test.rb index 6e8dc1cec..6adafa0c3 100644 --- a/test/models/upvs/message_template_test.rb +++ b/test/models/upvs/message_template_test.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: message_templates +# +# id :bigint not null, primary key +# content :text not null +# metadata :jsonb +# name :string not null +# system :boolean default(FALSE), not null +# type :string +# created_at :datetime not null +# updated_at :datetime not null +# tenant_id :bigint +# require "test_helper" class Upvs::MessageTemplateTest < ActiveSupport::TestCase diff --git a/test/system/upvs/message_drafts_test.rb b/test/system/upvs/message_drafts_test.rb index 97c6a3c48..852199cd6 100644 --- a/test/system/upvs/message_drafts_test.rb +++ b/test/system/upvs/message_drafts_test.rb @@ -11,17 +11,22 @@ class Upvs::MessageDraftsTest < ApplicationSystemTestCase end test "user can create message draft from Všeobecná agenda MessageTemplate" do + skip end test "user can create message draft from CRAC MessageTemplate" do + skip end test "user can update message draft content" do + skip end test "user can submit message draft" do + skip end test "user can delete message draft" do + skip end end