Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#1812 Do not allow enabling database logging when using multilingual #17815

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

spalmstr
Copy link
Contributor

@spalmstr spalmstr commented Jul 13, 2020

Overview

Logging is not supported in a multilingual environment, but that is not made clear on the page that enables logging. This deals with issue Missing view when logging set in a non-US English instance. by making it impossible in the future to enable logging in a multilingual environment.

Before

image

After

image

Technical Details

We test for if the environment is multilingual, and if it is, change the template message. Also, if someone attempts to enable logging, we throw an error.

Comments

I spent quite some time investigating the possibility of supporting a multilingual environment, but realised it is quite complicated and need lots of testing. This PR clarifies the current position.

@civibot
Copy link

civibot bot commented Jul 13, 2020

(Standard links)

@civibot civibot bot added the master label Jul 13, 2020
@demeritcowboy
Copy link
Contributor

Thanks for the PR.

  • General standards
    • [r-explain] PASS
      • Just to add some context: There is already a restriction if you enable logging first and then go to enable multilingual - it won't let you. But it will currently let you enable multilingual and then logging, so this PR makes it consistent.
    • [r-user] PASS
    • [r-doc] PASS
    • [r-run] PASS
      • I see this is consistent with how the trigger warning works, where it still lets you check Yes but then gives an error on save. That could be improved but I'd suggest out of scope here.
  • Developer standards
    • [r-tech] Issue
    • [r-code] Issue
      • The style-checker doesn't run on .tpl files but to be consistent this should all be 2 space indents.
    • [r-maint] N/A
    • [r-test] PASS

@demeritcowboy
Copy link
Contributor

Hi @spalmstr the commits still need squashing. It's a task that involves a lot of yelling and fist-shaking the first few times, but I find this article can get you out of trouble if you get stuck, and then you don't have to deal with the weird "interactive rebase" UI: https://stackoverflow.com/a/6103022/8332458

@demeritcowboy
Copy link
Contributor

Jenkins retest this please (test fail is a known intermittent failure)

@seamuslee001
Copy link
Contributor

just pining @mlutfy but this seem quite sensible to me

@eileenmcnaughton eileenmcnaughton added merge ready PR will be merged after a few days if there are no objections ok-without-test labels Jul 13, 2020
@eileenmcnaughton
Copy link
Contributor

Agree we don't need aa test on a wording change

@mlutfy mlutfy changed the title dev/core#1812 dev/core#1812 Missing view when logging set in a non-US English instance Jul 14, 2020
@mlutfy mlutfy merged commit bdc57cc into civicrm:master Jul 14, 2020
@mlutfy mlutfy changed the title dev/core#1812 Missing view when logging set in a non-US English instance dev/core#1812 Do not allow enabling database logging when using multilingual Jul 14, 2020
@spalmstr spalmstr deleted the dev/core#1812 branch March 9, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections ok-without-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants