gitlab-org--gitlab-foss/spec/models
João Cunha a2aa160cea Adapt functions to work for external Knative
Remove Kn services cache from Clusters::Application::Knative

Knative function can exist even if user did not installed Knative via
GitLab managed apps.

-> Move responsibility of finding services into the Cluster
-> Responsability is inside Clusters::Cluster::KnativeServiceFinder
-> Projects::Serverless::FunctionsFinder now calls depends solely on a
cluster to find the Kn services.
-> Detect Knative by resource presence instead of service presence
-> Mock knative_installed response temporarily for frontend to develop

Display loader while `installed === 'checking'`

Added frontend work to determine if Knative is installed

Memoize with_reactive_cache(*args, &block) to avoid race conditions

When calling with_reactive_cache more than once, it's possible that the
second call will already have the value populated. Therefore, in cases
where we need the sequential calls to have consistent results, we'd fall
under a race condition.

Check knative installation via Knative resource presence

Only load pods if Knative is discovered

Always return a response in FunctionsController#index

- Always indicate if Knative is installed, not installed or checking
- Always indicate the partial response for functions. Final response is
guaranteed when knative_installed is either true | false.

Adds specs for Clusters::Cluster#knative_services_finder

Fix method name when calling on specs

Add an explicit check for functions

Added an explicit check to see if there are any functions available

Fix Serverless feature spec

- we don't find knative installation via database anymore,
rather via Knative resource

Display error message for request timeouts

Display an error message if the request times out

Adds feature specs for when functions exist

Remove a test purposed hardcoded flag

Add ability to partially load functions

Added the ability to partially load functions on the frontend

Add frontend unit tests

Added tests for the new frontend additions

Generate new translations

Generated new frontend translations

Address review comments

Cleaned up the frontend unit test.
Added computed prop for `isInstalled`.

Move string to constant

Simplify nil to array conversion

Put knative_installed states in a frozen hash for better read

Pluralize list of Knative states

Quey services and pods filtering name

This way we don't need to filter the namespace in memory.
Also, the data we get from the network is much smaller.

Simplify cache_key and fix bug

- Simplifies the cache_key by removing namespace duplicate
- Fixes a bug with reactive_cache memoization
2019-05-29 11:21:53 +01:00
..
application_setting Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
badges Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
blob_viewer Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
ci Extract Ci::Build#report_artifacts into method 2019-05-28 17:06:29 +02:00
clusters Adapt functions to work for external Knative 2019-05-29 11:21:53 +01:00
concerns Fix merge request pipeline exist method 2019-05-06 13:20:47 +07:00
conversational_development_index Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
cycle_analytics Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
diff_viewer Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
error_tracking
hooks Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
issue Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
members Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
merge_request Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
network Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
postgresql
project_services Add notify_only_default_branch option to PipelinesEmailService 2019-05-28 13:41:43 +02:00
protected_branch Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
releases
serverless Add Knative metrics to Prometheus 2019-04-06 02:02:39 +00:00
uploads
ability_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
abuse_report_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
active_session_spec.rb Sessions can be listed for a given user 2019-05-15 16:02:15 +07:00
appearance_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
application_record_spec.rb Optimise upload path calls 2019-05-14 11:01:48 -05:00
application_setting_spec.rb Add Let's Encrypt application settings 2019-04-27 04:38:01 +00:00
award_emoji_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
badge_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
blob_spec.rb Ensure that we only request blobs in one batch 2019-04-24 14:13:32 +01:00
board_group_recent_visit_spec.rb
board_project_recent_visit_spec.rb
board_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
broadcast_message_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
chat_name_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
chat_team_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
commit_collection_spec.rb Backport splitting approval changes from CE 2019-04-02 11:01:07 +00:00
commit_range_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
commit_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
commit_status_spec.rb Remove deprecated uses of attribute_changed? 2019-04-30 15:24:25 +08:00
compare_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
container_repository_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
cycle_analytics_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
deploy_key_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
deploy_keys_project_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
deploy_token_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
deployment_spec.rb Fix remaining failures in shoulda-matcher 2019-05-21 23:19:07 -07:00
diff_discussion_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
diff_note_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
discussion_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
email_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
environment_spec.rb Fix remaining failures in shoulda-matcher 2019-05-21 23:19:07 -07:00
environment_status_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
event_collection_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
event_spec.rb Rename methods that conflict in Rails 5.2 2019-05-12 23:42:06 -05:00
external_issue_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
fork_network_member_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
fork_network_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
generic_commit_status_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
global_milestone_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
gpg_key_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
gpg_key_subkey_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
gpg_signature_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
group_custom_attribute_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
group_label_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
group_milestone_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
group_spec.rb Add part of needed code 2019-04-05 18:49:46 +00:00
guest_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
identity_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
import_export_upload_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
instance_configuration_spec.rb Display maximum artifact size from runtime config 2019-04-03 21:02:11 +02:00
internal_id_spec.rb Always use internal ID tables in development and production 2019-04-22 10:48:16 -07:00
issue_collection_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
issue_spec.rb Additional fix to handle NULL lock_version 2019-05-06 21:21:56 -07:00
key_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
label_link_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
label_note_spec.rb
label_priority_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
label_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
legacy_diff_discussion_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
lfs_download_object_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
lfs_file_lock_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
lfs_object_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
lfs_objects_project_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
license_template_spec.rb Fix license_template_spec to not modify String 2019-04-01 14:37:54 +13:00
list_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
member_spec.rb Allow a member to have an access level equal to parent group 2019-04-30 13:31:51 -07:00
merge_request_diff_commit_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
merge_request_diff_file_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
merge_request_diff_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
merge_request_spec.rb Additional fix to handle NULL lock_version 2019-05-06 21:21:56 -07:00
milestone_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
namespace_spec.rb Add packages_size to ProjectStatistics 2019-05-02 16:04:15 +00:00
note_diff_file_spec.rb Remove cleaned up OIDs from database and cache 2019-05-06 11:35:03 +01:00
note_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
notification_recipient_spec.rb Stop sending emails to users who can't read commit 2019-04-16 17:26:49 +08:00
notification_setting_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
pages_domain_spec.rb Remove disabled pages domains 2019-04-30 12:05:54 +00:00
personal_access_token_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
pool_repository_spec.rb Fix wrong use of ActiveRecord in PoolRepository 2019-04-20 13:27:53 +00:00
programming_language_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_authorization_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_auto_devops_spec.rb Remove un-used methods 2019-05-24 14:40:12 +12:00
project_ci_cd_setting_spec.rb
project_custom_attribute_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_daily_statistic_spec.rb
project_deploy_token_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_feature_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_group_link_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_import_data_spec.rb
project_import_state_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_label_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_metrics_setting_spec.rb Add ProjectMetricsDashboardSetting model and table 2019-04-26 17:23:26 +00:00
project_repository_spec.rb
project_snippet_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
project_spec.rb Stop emitting AUTO_DEVOPS_DOMAIN Ci variable 2019-05-24 14:40:12 +12:00
project_statistics_spec.rb Add packages_size to ProjectStatistics 2019-05-02 16:04:15 +00:00
project_team_spec.rb [CE] Reduce diff with EE in spec/models/project_team_spec.rb 2019-04-02 10:21:35 +02:00
project_wiki_spec.rb Added list_pages method to avoid loading all wiki pages content 2019-04-25 04:19:07 +00:00
prometheus_metric_spec.rb
protectable_dropdown_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
protected_branch_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
protected_tag_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
push_event_payload_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
push_event_spec.rb Rename methods that conflict in Rails 5.2 2019-05-12 23:42:06 -05:00
redirect_route_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
release_spec.rb Allow guests users to access project releases 2019-05-03 13:29:20 +00:00
remote_mirror_spec.rb Show disabled project repo mirrors 2019-05-07 03:42:09 +01:00
repository_language_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
repository_spec.rb Omit max-count for diverging_commit_counts behind feature flag 2019-05-14 12:13:19 -05:00
resource_label_event_spec.rb
route_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
sent_notification_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
service_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
shard_spec.rb
snippet_blob_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
snippet_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
spam_log_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
ssh_host_key_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
subscription_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
suggestion_spec.rb Fixed test specs 2019-04-04 13:08:34 +00:00
system_note_metadata_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
term_agreement_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
timelog_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
todo_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
tree_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
trending_project_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
upload_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
user_agent_detail_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
user_callout_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
user_custom_attribute_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
user_interacted_project_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
user_preference_spec.rb Added user time settings fields to profile 2019-05-07 21:58:16 +00:00
user_spec.rb [CE] Support multiple assignees for merge requests 2019-04-08 18:40:00 -03:00
user_status_spec.rb
wiki_directory_spec.rb Add # frozen_string_literal to spec/models 2019-04-01 14:37:54 +13:00
wiki_page_spec.rb Added list_pages method to avoid loading all wiki pages content 2019-04-25 04:19:07 +00:00