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

Control logging when there is no changes #514

Merged
merged 8 commits into from
Apr 15, 2019
Merged

Conversation

akoSalman
Copy link
Contributor

@akoSalman akoSalman commented Apr 10, 2019

Sometimes you don't want to save logs that have no changes.
To use this feature you must set below properties on your model.

            protected static $submitEmptyLogs = false;
            protected static $logOnlyDirty = true;

Copy link
Collaborator

@Gummibeer Gummibeer left a comment

Choose a reason for hiding this comment

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

@freekmurze your opinion?

src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
@Gummibeer
Copy link
Collaborator

Hey, thanks for your effort! I've seen some codestyle and standard issues. But don't know if it's still simple enough for this package @freekmurze ?

src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
@Gummibeer
Copy link
Collaborator

The StyleCI check still fails @akoSalman can you fix it?

src/Traits/LogsActivity.php Outdated Show resolved Hide resolved
tests/LogsActivityTest.php Show resolved Hide resolved
tests/LogsActivityTest.php Outdated Show resolved Hide resolved
@akoSalman akoSalman closed this Apr 11, 2019
@akoSalman
Copy link
Contributor Author

When do you merge? I need this new feature😊

@akoSalman akoSalman reopened this Apr 11, 2019
@Gummibeer
Copy link
Collaborator

I think that I will have time tomorrow. Will comment the new release.

Thanks so far!

@akoSalman
Copy link
Contributor Author

@Gummibeer Can you please merge this PR? I need to use it now in my project. Thanks.

@Gummibeer Gummibeer merged commit 6e827c0 into spatie:master Apr 15, 2019
@Gummibeer
Copy link
Collaborator

@Gummibeer
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants