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

Changes updated by rewriting config.php should sent events #31106

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

sharidas
Copy link
Contributor

When changes updated by rewriting config.php, for example
using method writeData() should also be logged. This change
would help to log these data. An example is updating
email settings from UI.

Signed-off-by: Sujith H [email protected]

Description

When config rewrite happens with setValues(), the symfony events are not triggered for config changes. The config.php rewrite happens. Events should be triggered for the changes that happened.

Related Issue

Motivation and Context

When config rewrite happens with setValues(), the symfony events are not triggered for config changes. The config.php rewrite happens. Events should be triggered for the changes that happened.

How Has This Been Tested?

  • Try to update the config say email
  • Verify the events are triggered by using debugger.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@sharidas sharidas self-assigned this Apr 12, 2018
@sharidas sharidas requested a review from PVince81 April 12, 2018 13:07
@sharidas sharidas added this to the development milestone Apr 12, 2018
When changes updated by rewriting config.php, for example
using method writeData() should also be logged. This change
would help to log these data. An example is updating
email settings from UI.

Signed-off-by: Sujith H <[email protected]>
@sharidas sharidas force-pushed the fix-config-massupdate branch from ac17373 to 62979f1 Compare April 16, 2018 14:53
@codecov
Copy link

codecov bot commented Apr 16, 2018

Codecov Report

Merging #31106 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #31106      +/-   ##
============================================
+ Coverage     62.52%   62.53%   +<.01%     
- Complexity    18274    18277       +3     
============================================
  Files          1147     1147              
  Lines         68428    68442      +14     
  Branches       1234     1234              
============================================
+ Hits          42787    42801      +14     
  Misses        25280    25280              
  Partials        361      361
Flag Coverage Δ Complexity Δ
#javascript 52.05% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 63.73% <100%> (ø) 18277 <9> (+3) ⬆️
Impacted Files Coverage Δ Complexity Δ
lib/private/Config.php 91.05% <100%> (+1.14%) 46 <9> (+3) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa89b5f...62979f1. Read the comment docs.

@sharidas
Copy link
Contributor Author

Stable10 PR: #31107

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit 08adc4b into master Apr 16, 2018
@PVince81 PVince81 deleted the fix-config-massupdate branch April 16, 2018 19:29
@PVince81 PVince81 modified the milestones: development, QA Jun 13, 2018
@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants