repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/schema.postgresql.rb
db/schema.postgresql.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # dat...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151029145958_remove_not_null_constraint_on_users_email.rb
db/migrate/20151029145958_remove_not_null_constraint_on_users_email.rb
class RemoveNotNullConstraintOnUsersEmail < ActiveRecord::Migration[4.2] def change change_column :users, :email, :string, :null => true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150428081530_remove_owner_id_from_teams.rb
db/migrate/20150428081530_remove_owner_id_from_teams.rb
class RemoveOwnerIdFromTeams < ActiveRecord::Migration[4.2] def change remove_column :teams, :owner_id, :integer end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150522141547_fix_index_name_on_namespaces.rb
db/migrate/20150522141547_fix_index_name_on_namespaces.rb
class FixIndexNameOnNamespaces < ActiveRecord::Migration[4.2] def change remove_index :namespaces, column: :name add_index :namespaces, [:name, :registry_id], unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150427092952_add_admin_to_users.rb
db/migrate/20150427092952_add_admin_to_users.rb
class AddAdminToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :admin, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171011150408_remove_fulltext_index_repositories_on_name_index.rb
db/migrate/20171011150408_remove_fulltext_index_repositories_on_name_index.rb
class RemoveFulltextIndexRepositoriesOnNameIndex < ActiveRecord::Migration[4.2] def change remove_index_if_exists :repositories, "fulltext_index_repositories_on_name" remove_index_if_exists :namespaces, "fulltext_index_namespaces_on_name" end def remove_index_if_exists(table, name) remove_index table...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150512105052_create_activities.rb
db/migrate/20150512105052_create_activities.rb
# Migration responsible for creating a table with activities class CreateActivities < ActiveRecord::Migration[4.2] # Create table def self.up create_table :activities do |t| t.belongs_to :trackable, polymorphic: true t.belongs_to :owner, polymorphic: true t.string :key t.text :parame...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150428081205_add_owner_to_team_users.rb
db/migrate/20150428081205_add_owner_to_team_users.rb
class AddOwnerToTeamUsers < ActiveRecord::Migration[4.2] def change add_column :team_users, :owner, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150928112551_add_description_to_namespace.rb
db/migrate/20150928112551_add_description_to_namespace.rb
class AddDescriptionToNamespace < ActiveRecord::Migration[4.2] def change add_column :namespaces, :description, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171213094038_remove_repository_and_tag_from_registry_event.rb
db/migrate/20171213094038_remove_repository_and_tag_from_registry_event.rb
class RemoveRepositoryAndTagFromRegistryEvent < ActiveRecord::Migration[4.2] def change remove_column :registry_events, :repository, :string remove_column :registry_events, :tag, :string end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180409142550_create_vulnerabilities.rb
db/migrate/20180409142550_create_vulnerabilities.rb
class CreateVulnerabilities < ActiveRecord::Migration[4.2] def change create_table :vulnerabilities do |t| t.string :name, null: false t.string :scanner, null: false, default: "" t.string :severity, null: false, default: "" t.string :link, null: false, default: "" t.string :fixed_by...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151124150353_removetitle.rb
db/migrate/20151124150353_removetitle.rb
class Removetitle < ActiveRecord::Migration[4.2] def change remove_column :comments, :title end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171213093923_add_status_and_data_to_registry_event.rb
db/migrate/20171213093923_add_status_and_data_to_registry_event.rb
class AddStatusAndDataToRegistryEvent < ActiveRecord::Migration[4.2] def change add_column :registry_events, :status, :integer, default: RegistryEvent.statuses[:done] add_column :registry_events, :data, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150522141052_fix_index_name_on_repositories.rb
db/migrate/20150522141052_fix_index_name_on_repositories.rb
class FixIndexNameOnRepositories < ActiveRecord::Migration[4.2] def change remove_index :repositories, column: :name add_index :repositories, [:name, :namespace_id], unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150722194840_create_stars.rb
db/migrate/20150722194840_create_stars.rb
class CreateStars < ActiveRecord::Migration[4.2] def change create_table :stars do |t| t.references :user, index: true, foreign_key: true t.references :repository, index: true, foreign_key: true t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171130095821_add_scanned_and_vulns_to_tag.rb
db/migrate/20171130095821_add_scanned_and_vulns_to_tag.rb
class AddScannedAndVulnsToTag < ActiveRecord::Migration[4.2] def change add_column :tags, :scanned, :integer, default: 0 add_column :tags, :vulnerabilities, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160927141850_create_registry_events.rb
db/migrate/20160927141850_create_registry_events.rb
class CreateRegistryEvents < ActiveRecord::Migration[4.2] def change create_table :registry_events do |t| t.string :event_id, default: "" t.string :repository, default: "" t.string :tag, default: "" t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150416121417_create_namespaces.rb
db/migrate/20150416121417_create_namespaces.rb
class CreateNamespaces < ActiveRecord::Migration[4.2] def change create_table :namespaces do |t| t.string :name, default: nil t.timestamps null: false end add_index :namespaces, :name, unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150426115313_create_team_users.rb
db/migrate/20150426115313_create_team_users.rb
class CreateTeamUsers < ActiveRecord::Migration[4.2] def change create_table :team_users do |t| t.belongs_to :user, index: true t.belongs_to :team, index: true t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150417095841_create_teams.rb
db/migrate/20150417095841_create_teams.rb
class CreateTeams < ActiveRecord::Migration[4.2] def change create_table :teams do |t| t.string :name t.references :owner, index: true t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20170630194953_add_omniauth_to_users.rb
db/migrate/20170630194953_add_omniauth_to_users.rb
class AddOmniauthToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :provider, :string add_column :users, :uid, :string end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160526105216_remove_index_on_ldap_users.rb
db/migrate/20160526105216_remove_index_on_ldap_users.rb
class RemoveIndexOnLdapUsers < ActiveRecord::Migration[4.2] def change remove_index "users", name: "index_users_on_ldap_name" end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180409143945_create_scan_results.rb
db/migrate/20180409143945_create_scan_results.rb
class CreateScanResults < ActiveRecord::Migration[4.2] def change create_table :scan_results do |t| t.integer :tag_id t.integer :vulnerability_id t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160510153011_add_namespace_id_to_users.rb
db/migrate/20160510153011_add_namespace_id_to_users.rb
class AddNamespaceIdToUsers < ActiveRecord::Migration[4.2] def change add_reference :users, :namespace, index: true, foreign_key: true, default: nil end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180412140442_add_description_to_vulnerabilities.rb
db/migrate/20180412140442_add_description_to_vulnerabilities.rb
class AddDescriptionToVulnerabilities < ActiveRecord::Migration[4.2] def change add_column :vulnerabilities, :description, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150915130327_add_lockable_to_users.rb
db/migrate/20150915130327_add_lockable_to_users.rb
class AddLockableToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :failed_attempts, :integer, default: 0 add_column :users, :locked_at, :datetime end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20181224123453_add_ldap_group_checked_to_teams.rb
db/migrate/20181224123453_add_ldap_group_checked_to_teams.rb
class AddLdapGroupCheckedToTeams < ActiveRecord::Migration[5.2] def change add_column :teams, :ldap_group_checked, :int, default: Team.ldap_statuses[:unchecked] end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151117181723_create_application_tokens.rb
db/migrate/20151117181723_create_application_tokens.rb
class CreateApplicationTokens < ActiveRecord::Migration[4.2] def change create_table :application_tokens do |t| t.string :application, null: false t.string :token_hash, null:false t.string :token_salt, null:false t.integer :user_id, null:false end add_index :application_tokens, :u...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160825105515_add_username_to_tags.rb
db/migrate/20160825105515_add_username_to_tags.rb
class AddUsernameToTags < ActiveRecord::Migration[4.2] def change add_column :tags, :username, :string end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151113162311_create_comments.rb
db/migrate/20151113162311_create_comments.rb
class CreateComments < ActiveRecord::Migration[4.2] def change create_table :comments do |t| t.string :title t.text :body t.references :repository, index: true, foreign_key: true t.timestamps null: false end end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151215152138_remove_log_from_crono_job.rb
db/migrate/20151215152138_remove_log_from_crono_job.rb
class RemoveLogFromCronoJob < ActiveRecord::Migration[4.2] def change remove_column :crono_jobs, :log, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151112003047_add_digest_to_tags.rb
db/migrate/20151112003047_add_digest_to_tags.rb
class AddDigestToTags < ActiveRecord::Migration[4.2] def change add_column :tags, :digest, :string end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180207145522_change_vulnerabilities_to_medium_text.rb
db/migrate/20180207145522_change_vulnerabilities_to_medium_text.rb
class ChangeVulnerabilitiesToMediumText < ActiveRecord::Migration[4.2] def change change_column :tags, :vulnerabilities, :text, limit: 16.megabytes - 1 end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160411150745_create_webhook_deliveries.rb
db/migrate/20160411150745_create_webhook_deliveries.rb
class CreateWebhookDeliveries < ActiveRecord::Migration[4.2] def change create_table :webhook_deliveries do |t| t.references :webhook, index: true, foreign_key: true t.string :uuid t.integer :status t.text :request_header t.text :request_body t.text :response_header t.tex...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20181213101302_add_index_scan_results_vulnerability_tag.rb
db/migrate/20181213101302_add_index_scan_results_vulnerability_tag.rb
class AddIndexScanResultsVulnerabilityTag < ActiveRecord::Migration[5.2] def change add_index(:scan_results, [:vulnerability_id, :tag_id]) end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160531151718_add_display_name_to_users.rb
db/migrate/20160531151718_add_display_name_to_users.rb
class AddDisplayNameToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :display_name, :string, default: nil add_index :users, :display_name, unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180109114124_add_name_to_webhooks.rb
db/migrate/20180109114124_add_name_to_webhooks.rb
class AddNameToWebhooks < ActiveRecord::Migration[4.2] def change add_column :webhooks, :name, :string, null: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150515114145_add_global_flag_to_namespaces.rb
db/migrate/20150515114145_add_global_flag_to_namespaces.rb
class AddGlobalFlagToNamespaces < ActiveRecord::Migration[4.2] def change add_column :namespaces, :global, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160502140301_add_marked_to_repositories_and_tags.rb
db/migrate/20160502140301_add_marked_to_repositories_and_tags.rb
class AddMarkedToRepositoriesAndTags < ActiveRecord::Migration[4.2] def change add_column :repositories, :marked, :boolean, default: false add_column :tags, :marked, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150831131727_add_ldap_name_to_users.rb
db/migrate/20150831131727_add_ldap_name_to_users.rb
class AddLdapNameToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :ldap_name, :string, default: nil add_index :users, :ldap_name, unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171220095321_drop_crono_jobs_table.rb
db/migrate/20171220095321_drop_crono_jobs_table.rb
class DropCronoJobsTable < ActiveRecord::Migration[4.2] def change drop_table :crono_jobs end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190115133935_add_pulled_at_to_tags.rb
db/migrate/20190115133935_add_pulled_at_to_tags.rb
class AddPulledAtToTags < ActiveRecord::Migration[5.2] def change add_column :tags, :pulled_at, :datetime, default: nil end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150805130722_create_crono_jobs.rb
db/migrate/20150805130722_create_crono_jobs.rb
class CreateCronoJobs < ActiveRecord::Migration[4.2] def self.up create_table :crono_jobs do |t| t.string :job_id, null: false t.text :log t.datetime :last_performed_at t.boolean :healthy t.timestamps null: false end add_index :crono_jobs, [:job_id], unique: true ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160411150458_create_webhook_headers.rb
db/migrate/20160411150458_create_webhook_headers.rb
class CreateWebhookHeaders < ActiveRecord::Migration[4.2] def change create_table :webhook_headers do |t| t.references :webhook, index: true, foreign_key: true t.string :name t.string :value t.timestamps null: false end add_index :webhook_headers, [:webhook_id, :name], unique: tr...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150429185051_add_public_to_namespace.rb
db/migrate/20150429185051_add_public_to_namespace.rb
class AddPublicToNamespace < ActiveRecord::Migration[4.2] def change add_column :namespaces, :public, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160614122012_remove_public_from_namespace.rb
db/migrate/20160614122012_remove_public_from_namespace.rb
class RemovePublicFromNamespace < ActiveRecord::Migration[4.2] def up remove_column :namespaces, :public, :boolean end def down add_column :namespaces, :public, :boolean end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20151113162513_add_author_to_comment.rb
db/migrate/20151113162513_add_author_to_comment.rb
class AddAuthorToComment < ActiveRecord::Migration[4.2] def change add_belongs_to :comments, :user, index: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150729153854_add_enabled_to_users.rb
db/migrate/20150729153854_add_enabled_to_users.rb
class AddEnabledToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :enabled, :bool, default: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190103113934_add_checked_at_to_team.rb
db/migrate/20190103113934_add_checked_at_to_team.rb
class AddCheckedAtToTeam < ActiveRecord::Migration[5.2] def change add_column :teams, :checked_at, :datetime, default: nil end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160614121943_move_public_to_visibility_on_namespace.rb
db/migrate/20160614121943_move_public_to_visibility_on_namespace.rb
class MovePublicToVisibilityOnNamespace < ActiveRecord::Migration[4.2] def up Namespace.all.each do |namespace| namespace.visibility = namespace.public? ? :visibility_public : :visibility_private namespace.save! end PublicActivity::Activity.where("activities.key = ? OR activities.key = ?", ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171031112721_remove_index_on_tag_name_repository_id.rb
db/migrate/20171031112721_remove_index_on_tag_name_repository_id.rb
class RemoveIndexOnTagNameRepositoryId < ActiveRecord::Migration[4.2] def change remove_index :tags, name: "index_tags_on_name_and_repository_id" end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190109112643_add_size_to_tags.rb
db/migrate/20190109112643_add_size_to_tags.rb
class AddSizeToTags < ActiveRecord::Migration[5.2] def change add_column :tags, :size, :integer end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150429102443_add_role_to_team_user.rb
db/migrate/20150429102443_add_role_to_team_user.rb
class AddRoleToTeamUser < ActiveRecord::Migration[4.2] def change add_column :team_users, :role, :integer, default: TeamUser.roles['viewer'] remove_column :team_users, :owner end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150507155425_add_registry_id_to_namespaces.rb
db/migrate/20150507155425_add_registry_id_to_namespaces.rb
class AddRegistryIdToNamespaces < ActiveRecord::Migration[4.2] def change add_belongs_to :namespaces, :registry, index: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190102143451_add_description_to_repositories.rb
db/migrate/20190102143451_add_description_to_repositories.rb
class AddDescriptionToRepositories < ActiveRecord::Migration[5.2] def change add_column :repositories, :description, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150629080516_change_registry_id_from_namespace.rb
db/migrate/20150629080516_change_registry_id_from_namespace.rb
class ChangeRegistryIdFromNamespace < ActiveRecord::Migration[4.2] def change # If there are namespaces without a registry_id set, try to migrate them to # the existing registry. Otherwise just fail and tell the user to create a # registry. if Namespace.any? registry = Registry.get if regi...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150416121842_create_repositories.rb
db/migrate/20150416121842_create_repositories.rb
class CreateRepositories < ActiveRecord::Migration[4.2] def change create_table :repositories do |t| t.string :name, null: false, default: '' t.integer :namespace_id, default: nil t.timestamps null: false end add_index :repositories, :name, unique: true add_index :repositories, :nam...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150414104850_devise_create_users.rb
db/migrate/20150414104850_devise_create_users.rb
class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| ## Database authenticatable t.string :username, null: false, default: '' t.string :email, null: false, default: '' t.string :encrypted_password, null: false, default: '' ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150515111638_add_author_to_tag.rb
db/migrate/20150515111638_add_author_to_tag.rb
class AddAuthorToTag < ActiveRecord::Migration[4.2] def change add_belongs_to :tags, :user, index: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150518142223_add_hidden_to_teams.rb
db/migrate/20150518142223_add_hidden_to_teams.rb
class AddHiddenToTeams < ActiveRecord::Migration[4.2] def change add_column :teams, :hidden, :boolean, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190314173309_change_tag_size.rb
db/migrate/20190314173309_change_tag_size.rb
class ChangeTagSize < ActiveRecord::Migration[5.2] def change change_column :tags, :size, :bigint end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160422075603_add_image_id_to_tag.rb
db/migrate/20160422075603_add_image_id_to_tag.rb
class AddImageIdToTag < ActiveRecord::Migration[4.2] def change add_column :tags, :image_id, :string, default: "" end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160411150441_create_webhooks.rb
db/migrate/20160411150441_create_webhooks.rb
class CreateWebhooks < ActiveRecord::Migration[4.2] def change create_table :webhooks do |t| t.references :namespace, index: true, foreign_key: true t.string :url t.string :username t.string :password t.integer :request_method t.integer :content_type t.boolean :enabled, d...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150923091830_add_use_ssl_to_registries.rb
db/migrate/20150923091830_add_use_ssl_to_registries.rb
class AddUseSslToRegistries < ActiveRecord::Migration[4.2] def change add_column :registries, :use_ssl, :boolean end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150924084635_add_attribute_to_teams.rb
db/migrate/20150924084635_add_attribute_to_teams.rb
class AddAttributeToTeams < ActiveRecord::Migration[4.2] def change add_column :teams, :description, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150507155138_create_registries.rb
db/migrate/20150507155138_create_registries.rb
class CreateRegistries < ActiveRecord::Migration[4.2] def change create_table :registries do |t| t.string :name, null: false t.string :hostname, null: false t.timestamps null: false end add_index :registries, :name, unique: true add_index :registries, :hostname, unique: true end e...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180411102022_remove_vulnerabilities_from_tag.rb
db/migrate/20180411102022_remove_vulnerabilities_from_tag.rb
class RemoveVulnerabilitiesFromTag < ActiveRecord::Migration[4.2] def change remove_column :tags, :vulnerabilities, :text end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150522140822_add_index_name_on_teams.rb
db/migrate/20150522140822_add_index_name_on_teams.rb
class AddIndexNameOnTeams < ActiveRecord::Migration[4.2] def change add_index :teams, :name, unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20171014192702_add_indexes_to_activities.rb
db/migrate/20171014192702_add_indexes_to_activities.rb
class AddIndexesToActivities < ActiveRecord::Migration[4.2] def self.up add_index :activities, [:trackable_type] end def self.down remove_index :activities, [:trackable_type] end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150521145620_add_fulltext_indexes_on_repositories_namespaces.rb
db/migrate/20150521145620_add_fulltext_indexes_on_repositories_namespaces.rb
require "portus/db" class AddFulltextIndexesOnRepositoriesNamespaces < ActiveRecord::Migration[4.2] def change # This `if` statement has been added after this migration was # created. Modifying migrations is generally a *bad* idea but this will only # apply to PostgreSQL deployments that start from scrat...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150417100647_add_team_reference_to_namespace.rb
db/migrate/20150417100647_add_team_reference_to_namespace.rb
class AddTeamReferenceToNamespace < ActiveRecord::Migration[4.2] def change add_belongs_to :namespaces, :team, index: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20190103124548_add_ldap_group_checked_to_user.rb
db/migrate/20190103124548_add_ldap_group_checked_to_user.rb
class AddLdapGroupCheckedToUser < ActiveRecord::Migration[5.2] def change add_column :users, :ldap_group_checked, :integer, default: User.ldap_statuses[:unchecked] end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160614114318_add_visibility_to_namespace.rb
db/migrate/20160614114318_add_visibility_to_namespace.rb
class AddVisibilityToNamespace < ActiveRecord::Migration[4.2] def up add_column :namespaces, :visibility, :integer end def down remove_column :namespaces, :visibility, :integer end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150513133049_add_index_to_activities_key.rb
db/migrate/20150513133049_add_index_to_activities_key.rb
class AddIndexToActivitiesKey < ActiveRecord::Migration[4.2] def change add_index :activities, :key end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150416122030_create_tags.rb
db/migrate/20150416122030_create_tags.rb
class CreateTags < ActiveRecord::Migration[4.2] def change create_table :tags do |t| t.string :name, null: false, default: 'latest' t.integer :repository_id, null: false t.timestamps null: false end add_index :tags, :repository_id end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20150522144027_add_index_on_tag_name_repository_id.rb
db/migrate/20150522144027_add_index_on_tag_name_repository_id.rb
class AddIndexOnTagNameRepositoryId < ActiveRecord::Migration[4.2] def change add_index :tags, [:name, :repository_id], unique: true end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20160519110301_add_external_hostname_to_registries.rb
db/migrate/20160519110301_add_external_hostname_to_registries.rb
class AddExternalHostnameToRegistries < ActiveRecord::Migration[4.2] def change add_column :registries, :external_hostname, :string end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/db/migrate/20180612145708_add_bot_to_user.rb
db/migrate/20180612145708_add_bot_to_user.rb
class AddBotToUser < ActiveRecord::Migration[4.2] def change add_column :users, :bot, :bool, default: false end end
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/security.rb
bin/security.rb
# frozen_string_literal: true require "portus/security" if ARGV.size != 2 puts "Usage: rails runner bin/security.rb <image> <tag>" exit 1 end image, tag = ARGV sec = ::Portus::Security.new(image, tag) vulns = sec.vulnerabilities vulns.each do |name, result| hsh = {} n = name.to_s.capitalize print "#{n}\n...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/check_db.rb
bin/check_db.rb
# frozen_string_literal: true # This is a rails runner that will print the status of Portus' database. # Possible outcomes: # # * `DB_READY`: the database has been created and initialized. # * `DB_EMPTY`: the database has been created but has not been initialized. # * `DB_MISSING`: the database has not been crea...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/health.rb
bin/health.rb
# frozen_string_literal: true require "optparse" require "ostruct" require "json" require "portus/health" # Returns true if the given string value contains a truthy value. def truthy?(val) v = val&.downcase v == "t" || v == "y" || v == "1" end ## # Parse options. options = OpenStruct.new(quiet: false, componen...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/client.rb
bin/client.rb
# frozen_string_literal: true # This script has to be used inside of the `rails runner` command. So, for # example, to get the results from the manifest: # # $ rails runner manifest mssola/busybox:latest # # These are the available commands: # - catalog # - delete <name> <digest> blobs/manifests # - manifest <...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/generate_test_data.rb
bin/generate_test_data.rb
# frozen_string_literal: true require "set" require "pty" module Portus # This class is the one responsible for generating new development data. class TestData # The number of users to be created. NUSERS = 100 # Name of the only user that is not created with a random name. SPECIAL_USER = "admin" ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/background.rb
bin/background.rb
# frozen_string_literal: true # # First of all, wait until the database is up and running. This is useful in # containerized scenarios. # ::Portus::DB.wait_until(:ready) # # The DB is up, now let's define the different background jobs as classes. # require "portus/background/garbage_collector" require "portus/backg...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/schema_check.rb
bin/schema_check.rb
# frozen_string_literal: true db = /version: ([\d\_]+)/ mysql = IO.read(Rails.root.join("db", "schema.mysql.rb")).scan(db).first.first postgresql = IO.read(Rails.root.join("db", "schema.postgresql.rb")).scan(db).first.first if mysql == postgresql Rails.logger.tagged(:schema_check) { Rails.logger.info "All fin...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/bin/integration/integration.rb
bin/integration/integration.rb
# frozen_string_literal: true require "English" require "openssl" require "fileutils" require "yaml" require "portus/cmd" require "portus/test" # Returns the file to be used for the given profile. def compose_file profile = case ENV["PORTUS_INTEGRATION_PROFILE"] when /^ldap/ ".ldap" ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/rails_helper.rb
spec/rails_helper.rb
# frozen_string_literal: true ENV["RAILS_ENV"] ||= "test" ENV["NODE_ENV"] ||= "test" require "spec_helper" require File.expand_path("../config/environment", __dir__) require "rspec/rails" require "pundit/rspec" Capybara.server = :puma, { Silent: true } # Raise exception for pending migrations after reading the sch...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/spec_helper.rb
spec/spec_helper.rb
# frozen_string_literal: true require "simplecov" require "webmock/rspec" require "vcr" SimpleCov.minimum_coverage 100 SimpleCov.start "rails" do # TODO: remove this when this feature is merged in zypper-docker's master branch. add_filter "lib/portus/security_backends/zypper" end VCR.configure do |c| c.cassett...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/repositories_spec.rb
spec/system/repositories_spec.rb
# frozen_string_literal: true require "rails_helper" def find_tag_checkbox(name) tag = find("div", text: /\A#{name}\z/) tag.find(:xpath, "../..").find(".pretty-checkbox") end describe "Feature: Repositories", js: true do let!(:registry) { create(:registry, hostname: "registry.test.lan") } let!(:user) { creat...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/repositories_comments_spec.rb
spec/system/repositories_comments_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Repositories comments support" do let!(:registry) { create(:registry, hostname: "registry.test.lan") } let!(:admin) { create(:admin) } let!(:owner) { create(:user) } let!(:user) { create(:user) } let!(:team) { create(:team, owners: [owner]) } ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/gravatar_spec.rb
spec/system/gravatar_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Gravatar support" do let!(:registry) { create(:registry) } let!(:user) { create(:user) } before do login user end it "If gravatar support is on, there should be an image" do APP_CONFIG["gravatar"] = { "enabled" => true } visit root...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/webhooks_spec.rb
spec/system/webhooks_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Webhooks support", type: :system, js: true do let!(:registry) { create(:registry) } let!(:user) { create(:admin) } let!(:user2) { create(:user) } let!(:user3) { create(:user) } let!(:team) { create(:team, owners: [user], contributors: [user2], v...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/tags_spec.rb
spec/system/tags_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Feature: Tags", js: true do let!(:registry) { create(:registry, hostname: "registry.test.lan") } let!(:user) { create(:admin) } let!(:team) { create(:team, owners: [user], contributors: [], viewers: []) } let!(:namespace) { create(:namespace, team...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/forgotten_password_spec.rb
spec/system/forgotten_password_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Forgotten password support" do let!(:user) { create(:admin) } let!(:portus) { create(:admin, username: "portus", email: "portus@portus.com") } before do APP_CONFIG["signup"] = { "enabled" => true } APP_CONFIG["email"] = { "from" ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/namespaces_spec.rb
spec/system/namespaces_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Namespaces support", type: :system, js: true do let!(:registry) { create(:registry) } let!(:user) { create(:admin) } let!(:user2) { create(:user) } let!(:user3) { create(:user) } let!(:team) { create(:team, owners: [user], contributors: [user2],...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/application_tokens_spec.rb
spec/system/application_tokens_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Application tokens" do let!(:user) { create(:user) } before do login_as user, scope: :user end describe "ApplicationTokens#create" do it "As an user I can create a new token", js: true do visit edit_user_registration_path fin...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/explore_spec.rb
spec/system/explore_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Explore feature" do let!(:registry) { create(:registry) } before do # Default value APP_CONFIG["anonymous_browsing"] = { "enabled" => true } end context "Access" do before do visit new_user_session_path end it "allows ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/dashboard_spec.rb
spec/system/dashboard_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Dashboard page" do let!(:registry) { create(:registry) } let!(:user) { create(:admin, display_name: "docker-gangsta") } let!(:team) { create(:team, owners: [user]) } let!(:namespace) { create(:namespace, team: team, registry: registry) } let!(:r...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/help_spec.rb
spec/system/help_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Help page" do describe "API documentation support" do let!(:registry) { create(:registry) } let!(:user) { create(:admin) } before do login_as user, scope: :user end it "A user can go to the API documentation" do ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false
SUSE/Portus
https://github.com/SUSE/Portus/blob/2843437742515c1f0896fafaee166cde336f5b18/spec/system/application_spec.rb
spec/system/application_spec.rb
# frozen_string_literal: true require "rails_helper" describe "Global application" do let!(:registry) { create(:registry) } let!(:user) { create(:admin) } describe "#force_update_profile!" do it "does nothing for accounts with a proper email" do login_as user, scope: :user visit root_path ...
ruby
Apache-2.0
2843437742515c1f0896fafaee166cde336f5b18
2026-01-04T15:51:56.938548Z
false