OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove some dead i18n keys, code, and files related to enterprise tokens
Christophe Bliard3d2b33ccea00
diff --git a/app/components/admin/enterprise_tokens/row_component.rb b/app/components/admin/enterprise_tokens/row_component.rbindex 5e20c665d84..495318f0abf 100644--- a/app/components/admin/enterprise_tokens/row_component.rb+++ b/app/components/admin/enterprise_tokens/row_component.rb@@ -69,7 +69,7 @@ module Admin::EnterpriseTokensdef max_active_userscount =if token.unlimited_users?- I18n.t("js.admin.enterprise.upsell.unlimited")+ I18n.t("ee.upsell.unlimited")elsetoken.max_active_users.to_send@@ -143,7 +143,7 @@ module Admin::EnterpriseTokensenddef expiration_date- token.will_expire? ? helpers.format_date(token.expires_at) : I18n.t("js.admin.enterprise.upsell.unlimited")+ token.will_expire? ? helpers.format_date(token.expires_at) : I18n.t("ee.upsell.unlimited")enddef start_date_colordiff --git a/app/forms/enterprise_trials/form.rb b/app/forms/enterprise_trials/form.rbindex 9c78a134a40..a721f0eb0a8 100644--- a/app/forms/enterprise_trials/form.rb+++ b/app/forms/enterprise_trials/form.rb@@ -33,7 +33,7 @@ module EnterpriseTrialsform do |f|f.text_field(name: :company,- label: I18n.t("js.admin.enterprise.trial.form.label_company"),+ label: I18n.t("activerecord.attributes.enterprise_trial.company"),required: true)diff --git a/app/models/enterprise_token.rb b/app/models/enterprise_token.rbindex 4a37229cc5a..b4f8fd0d4da 100644--- a/app/models/enterprise_token.rb+++ b/app/models/enterprise_token.rb@@ -89,14 +89,6 @@ class EnterpriseToken < ApplicationRecordendend- def banner_type_for(feature:)- if !active?- :no_token- elsif !allows_to?(feature)- :upsell- end- end-def set_active_tokens# although we use the `active` scope here, we still need to filter out non-active tokens# as not all token validity period is extracted into the DBdiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 1300091fcfc..b4af5f34bc8 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -97,9 +97,6 @@ en:type_token_text: "Type support token text"token_placeholder: "Paste your Enterprise edition support token here"add_token: "Upload an Enterprise edition support token"- delete_token_modal:- text: "Are you sure you want to remove the current Enterprise edition token used?"- title: "Delete token"replace_token: "Replace your current support token"order: "Order Enterprise on-premises edition"paste: "Paste your Enterprise edition support token"@@ -111,8 +108,6 @@ en:buttons:upgrade: "Upgrade now"contact: "Contact us for a demo"- enterprise_info_html: "is an Enterprise <span class='spot-icon spot-icon_inline spot-icon_enterprise-addons'></span> add-on."- upgrade_info: "Please upgrade to a paid plan to activate and start using it in your team."status:expired: "Expired"expiring_soon: "Expiring soon"@@ -2144,6 +2139,7 @@ en:plan_title: "Enterprise %{plan} add-on"plan_name: "%{plan} enterprise plan"plan_text_html: "Available starting with the %{plan_name}."+ unlimited: "Unlimited"already_have_token: >Already have a token? Add it using the button below to upgrade to the booked Enterprise plan.hide_banner: "Hide this banner"diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 1a8857b7dc3..4f56288ce01 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -225,49 +225,7 @@ en:new_group: "New group"reset_to_defaults: "Reset to defaults"enterprise:- text_reprieve_days_left: "%{days} days until end of grace period"- text_expired: "expired"- trial:- confirmation: "Confirmation of email address"- form:- general_consent: >- I agree with the <a target="_blank" href="%{link_terms}">terms of service</a>- and the <a target="_blank" href="%{link_privacy}">privacy policy</a>.- invalid_email: "Invalid email address"- label_company: "Company"- label_first_name: "First name"- label_last_name: "Last name"- label_domain: "Domain"- label_subscriber: "Subscriber"- label_maximum_users: "Maximum active users"- label_starts_at: "Starts at"- label_expires_at: "Expires at"- label_plan: "Plan"- label_additional_features: "Additional features"- receive_newsletter: I want to receive the OpenProject <a target="_blank" href="%{link}">newsletter</a>.- taken_domain: There can only be one active trial per domain.- domain_mismatch: The current request host name does not match the configured host name. Please double check your system settings.- taken_email: Each user can only create one trial.- email_not_received: "You did not receive an email? You can resend the email with the link on the right."- try_another_email: "Or try it with another email address."- next_steps: "Next steps"- resend_link: "Resend"- resend_success: "Email has been resent. Please check your emails and click the confirmation link provided."- resend_warning: "Could not resend email."- session_timeout: "Your session timed out. Please try to reload the page or resend email."- status_label: "Status:"- status_confirmed: "confirmed"- status_waiting: "email sent - waiting for confirmation"- test_ee: "Test the Enterprise edition 14 days for free"- quick_overview: "Get a quick overview of project management and team collaboration with OpenProject Enterprise edition."upsell:- become_hero: "Become a hero!"- enterprise_info_html: "%{feature_title} is an Enterprise <span class='spot-icon spot-icon_inline spot-icon_enterprise-addons'></span> add-on."- upgrade_info: "Please upgrade to a paid plan to activate and start using it in your team."- text: >- The OpenProject Enterprise edition builds on top of the Community edition.- It includes Enterprise add-ons and professional support mainly aimed at organizations with more than 10 users that manage business critical projects with OpenProject.- you_contribute: "Developers need to pay their bills, too. By upgrading to the Enterprise edition, you will be supporting this open source community effort and contributing to its development, maintenance and continuous improvement."benefits:description: "What are the benefits of the Enterprise on-premises edition?"high_security: "Security features"@@ -278,15 +236,6 @@ en:premium_features_text: "Agile boards, custom theme and logo, graphs, intelligent workflows with custom actions, full text search for work package attachments and multi-select custom fields."professional_support: "Professional support"professional_support_text: "Get reliable, high-touch support from senior support engineers with expert knowledge about running OpenProject in business-critical environments."- button_start_trial: "Start free trial"- button_upgrade: "Upgrade now"- button_contact_us: "Contact us for a demo"- button_book_now: "Book now"- confidence: >- We deliver the confidence of a tested and supported enterprise-class project management software - with Open Source and an open mind.- link_quote: "Get a quote"- more_info: "More information"- unlimited: "Unlimited"working_days:calendar:diff --git a/spec/fixtures/ee_tokens/v1_expired_with_7_days_reprieve_at_2021_09_01.token b/spec/fixtures/ee_tokens/v1_expired_with_7_days_reprieve_at_2021_09_01.tokendeleted file mode 100644index 0ca597fe230..00000000000--- a/spec/fix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5Zei9QYVpa-dWFKZGlsTFJYM0luNno0NFBUWDBGTVNRNTFqcWwzNlZJWnZEUlNaTkJcbk05-Tnl3b2JJUkp3VncweVVLbDFhT0V4ODYzRjVKMThKK0VHa2dkMHR0YnZsNjRS-Vm1aSTZPM2lqdTdDMVxuanpIbzlDZjJRQi9uVk9SNldLTytWczZTTE5FcHpx-dGlHbU5jWUpPM3Mybit0QlUrL2xPMlBmbDQ0OVlCXG5rcGVBTUYvM0RERTVL-YzI3ZndpY1NENDFBWWl0c0llN01Eb1pUMG5wOXlVM2dxQUthMkhQd2dnMWcw-R0xcbjBGVEtoWkkwendTQkhwZU5rZzM5Q0VZUDVWQk8vdz09XG4iLCJpdiI6-IkREbjZ3cm1NczBGaFk5cVFtanNuQXc9PVxuIn0=------END OPENPROJECT-EE TOKEN-----diff --git a/spec/fixtures/ee_tokens/v1_expired_without_reprieve_at_2021_09_01.token b/spec/fixtures/ee_tokens/v1_expired_without_reprieve_at_2021_09_01.tokendeleted file mode 100644index 4674d8ec340..00000000000--- a/spec/fixtures/ee_tokens/v1_expired_without_reprieve_at_2021_09_01.token+++ /dev/null@@ -1,42 +0,0 @@------BEGIN OPENPROJECT-EE TOKEN------eyJkYXRhIjoiR0hXTnJxS0VhZUhVeWozcks0elh4K3dTeEpMMGhPbVd0VVRK-cXpmY3UzUWFLcGZDQVd2Vmxhc2JEQ0F0XG5lQkZ5U0JiSUs5VkMyQXkzaFBD-VHl5dy9ibFY5ZXhaaGRqTjVyd1dVbUxpTHJ3czZqRkVtZnNmemJCUURcbkgv-aWtUSm5rRGU1RkRqeDBrR29iTmJSbVg5K1hjc2xYZjNFSEN5ZDV2TUpjd1dF-UDFQQW5WaUJmNWdEL1xuMDlLWW9BT1NBVDI5cDJUclVOb25ic0NqMjFJa1Vy-dUxFdGhSa2dpa2N2dHVXcldoQWpuWC9qUWNsOXoxXG5tRzlvVWJOUzU4dWN6-VHdSNysxU25SQ1dEK0tKNElUSG15bm5vODFQWVkxT21yckdiY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Q1FtUDla-SEZzajhDdmRabGU2XG44dkUvZmlRd3Z2R2dXaEpFaG96WWEvcW5yQmFWbmd5-Y1ZqSUFLTm9UbGFyWEYyRDliSjlQUXJJYzdGb0JcbnNBRTY1MDBhM3ZqNzA1-c2FXcm1kVGRjdXdRU1M3QzY4TDJ4TnFaUlh6T2tRVlR0aWEwUnd0R2xKZm1R-RlxuQ3l3c0tVUHRnbXA4KzNlUUtRWEE4ZTMvdWZOTXhvSENUQ3p6M3ZJaUtY-Y1pVWFRPcEJCVisybXJxOTArXG53eTZ1Q0Y2TkRKVCtkQUU3aE1hMzhSTzhq-cXFVeGR6bktCemJFUDdwNHdWK1Yvb053ajV3SWdhZzBXYm5cblcwUkhpcURx-eVJMNzVNa29JT0g2dndlOW1VbGJ5Q3Fwa1FITDd0Wk45bWZJcXcxWUs5NzY4-a1czcE1BQVxuMElESDJBRHVTS09NNkpZcjRrYURVNHVNT0E2a1haOFphMmdS-ZUZPYTBxblI5V2E2WFVPeE4vRS9CNVNoXG5qa2RkNWdweGp3MlExa2I5RFhL-TmhJNStjcTF4ekZrMTRReFJjSUNlaTJtWUVtR0w4Rml0SlUxbFg4a2tcbnNO-d2dUbUdja2JaMDluT2FDdjFucUlCcGs5dW4zQnUwMGdiY3hGVGt2VldtTDdw-MVpvUVJJVGQva1FESlxucjBKc3Qvdnk2S1Bkek9xR0Z0M212enEvOUlJL3Br-T2ZuaHJwTWpZY1JkRXB0WVROUWoxVDNBTm82ekFmXG52MmhGM05EQnhMVXdh-bU9kMkljWStaWERVamc5ZGFpUEVLQ1FkMmtGNDJDWXdCKzNQcGw0azVmSk5h-WXFcbnd0SmxNTVkxODFka3Vzbm1qTDVmcmpoMmpnWkZidz09XG4iLCJpdiI6-IjNiM29OTVJCSHFiRGF3bGdtTEN5RVE9PVxuIn0=------END OPENPROJECT-EE TOKEN-----\ No newline at end of filediff --git a/spec/models/enterprise_token_spec.rb b/spec/models/enterprise_token_spec.rbindex 29db1e17e15..739b9c95d7e 100644--- a/spec/models/enterprise_token_spec.rb+++ b/spec/models/enterprise_token_spec.rb@@ -154,43 +154,6 @@ RSpec.describe EnterpriseToken doendend- describe ".banner_type_for" do- before do- allow(described_class).to receive(:allows_to?).with(:active_feature).and_return(true)- allow(described_class).to receive(:allows_to?).with(:inactive_feature).and_return(false)- end-- context "without an EnterpriseToken" do- before do- allow(described_class).to receive(:active?).and_return(false)- end-- it "returns :no_token" do- expect(described_class.banner_type_for(feature: :active_feature)).to eq(:no_token)- end- end-- context "with a feature that is included in the EnterpriseToken" do- before do- allow(described_class).to receive(:active?).and_return(true)- end-- it "returns nil" do- expect(described_class.banner_type_for(feature: :active_feature)).to be_nil- end- end-- context "with a feature that is not included in the EnterpriseToken" do- before do- allow(described_class).to receive(:active?).and_return(true)- end-- it "returns :upsell" do- expect(described_class.banner_type_for(feature: :inactive_feature)).to eq(:upsell)- end- end- end-context "with an existing token" docontext "when inner token is active" dosubject! do