Skip to content

Commit e177511

Browse files
committed
Enable translation suggestions for basic plans
1 parent c656c0a commit e177511

5 files changed

+44
-27
lines changed

app/models/organization.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ def cancel_trial
135135
FEATURE_POST_PROCESSING: [Subscription::PLAN_TEAM, Subscription::PLAN_BUSINESS],
136136
FEATURE_PROJECT_ACTIVITY: [Subscription::PLAN_TEAM, Subscription::PLAN_BUSINESS],
137137
FEATURE_TAGS: [],
138-
FEATURE_MACHINE_TRANSLATION_SUGGESTIONS: [Subscription::PLAN_TEAM, Subscription::PLAN_BUSINESS],
138+
FEATURE_MACHINE_TRANSLATION_SUGGESTIONS: [
139+
Subscription::PLAN_BASIC,
140+
Subscription::PLAN_TEAM,
141+
Subscription::PLAN_BUSINESS
142+
],
139143
FEATURE_MACHINE_TRANSLATION_LANGUAGE: [Subscription::PLAN_TEAM, Subscription::PLAN_BUSINESS],
140144
FEATURE_ADVANCED_PERMISSION_SYSTEM: [Subscription::PLAN_BUSINESS],
141145
FEATURE_OTA: [Subscription::PLAN_BUSINESS],

spec/requests/api/v1/__snapshots__/forbidden_words_lists_index.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@
110110
],
111111
"FEATURE_TAGS" => [],
112112
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
113-
[0] "team",
114-
[1] "business"
113+
[0] "basic",
114+
[1] "team",
115+
[2] "business"
115116
],
116117
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
117118
[0] "team",

spec/requests/api/v1/__snapshots__/organizations_create_with_name.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
],
5656
"FEATURE_TAGS" => [],
5757
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
58-
[0] "team",
59-
[1] "business"
58+
[0] "basic",
59+
[1] "team",
60+
[2] "business"
6061
],
6162
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
6263
[0] "team",

spec/requests/api/v1/__snapshots__/organizations_create_with_name_and_description.snap

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
],
5656
"FEATURE_TAGS" => [],
5757
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
58-
[0] "team",
59-
[1] "business"
58+
[0] "basic",
59+
[1] "team",
60+
[2] "business"
6061
],
6162
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
6263
[0] "team",

spec/requests/api/v1/__snapshots__/organizations_index.snap

+30-20
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@
7070
],
7171
"FEATURE_TAGS" => [],
7272
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
73-
[0] "team",
74-
[1] "business"
73+
[0] "basic",
74+
[1] "team",
75+
[2] "business"
7576
],
7677
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
7778
[0] "team",
@@ -175,8 +176,9 @@
175176
],
176177
"FEATURE_TAGS" => [],
177178
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
178-
[0] "team",
179-
[1] "business"
179+
[0] "basic",
180+
[1] "team",
181+
[2] "business"
180182
],
181183
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
182184
[0] "team",
@@ -280,8 +282,9 @@
280282
],
281283
"FEATURE_TAGS" => [],
282284
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
283-
[0] "team",
284-
[1] "business"
285+
[0] "basic",
286+
[1] "team",
287+
[2] "business"
285288
],
286289
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
287290
[0] "team",
@@ -385,8 +388,9 @@
385388
],
386389
"FEATURE_TAGS" => [],
387390
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
388-
[0] "team",
389-
[1] "business"
391+
[0] "basic",
392+
[1] "team",
393+
[2] "business"
390394
],
391395
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
392396
[0] "team",
@@ -490,8 +494,9 @@
490494
],
491495
"FEATURE_TAGS" => [],
492496
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
493-
[0] "team",
494-
[1] "business"
497+
[0] "basic",
498+
[1] "team",
499+
[2] "business"
495500
],
496501
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
497502
[0] "team",
@@ -595,8 +600,9 @@
595600
],
596601
"FEATURE_TAGS" => [],
597602
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
598-
[0] "team",
599-
[1] "business"
603+
[0] "basic",
604+
[1] "team",
605+
[2] "business"
600606
],
601607
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
602608
[0] "team",
@@ -700,8 +706,9 @@
700706
],
701707
"FEATURE_TAGS" => [],
702708
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
703-
[0] "team",
704-
[1] "business"
709+
[0] "basic",
710+
[1] "team",
711+
[2] "business"
705712
],
706713
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
707714
[0] "team",
@@ -805,8 +812,9 @@
805812
],
806813
"FEATURE_TAGS" => [],
807814
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
808-
[0] "team",
809-
[1] "business"
815+
[0] "basic",
816+
[1] "team",
817+
[2] "business"
810818
],
811819
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
812820
[0] "team",
@@ -910,8 +918,9 @@
910918
],
911919
"FEATURE_TAGS" => [],
912920
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
913-
[0] "team",
914-
[1] "business"
921+
[0] "basic",
922+
[1] "team",
923+
[2] "business"
915924
],
916925
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
917926
[0] "team",
@@ -1015,8 +1024,9 @@
10151024
],
10161025
"FEATURE_TAGS" => [],
10171026
"FEATURE_MACHINE_TRANSLATION_SUGGESTIONS" => [
1018-
[0] "team",
1019-
[1] "business"
1027+
[0] "basic",
1028+
[1] "team",
1029+
[2] "business"
10201030
],
10211031
"FEATURE_MACHINE_TRANSLATION_LANGUAGE" => [
10221032
[0] "team",

0 commit comments

Comments
 (0)