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

Issue 4701 - RFE - Exclude attributes from retro changelog #4723

Merged
merged 1 commit into from Apr 27, 2021

Conversation

jchapma
Copy link
Contributor

@jchapma jchapma commented Apr 15, 2021

Description: When the retro changelog plugin is enabled it writes the
added/modified values to the "cn-changelog" suffix. In
some cases an entries attribute values can be of a
sensitive nature and should be excluded. This RFE adds
functionality that will allow an admin exclude certain
attributes from the retro changelog DB.

Relates: #4701

Reviewed by: ??

@mreynolds389
Copy link
Contributor

Nice, a few minor issues, but it looks good to me.

Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

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

Joining to Mark's comments.
And if the run with ASAN is clean - looks good :)

dirsrvtests/tests/suites/retrocl/basic_test.py Outdated Show resolved Hide resolved
@droideck
Copy link
Member

Oh, and put the test to the testing tier, please. So it will run in the GitHub CI.
I think it should be tier1 but @sgouvern or @bsimonova may correct me.

You can do this similar to this test suite:
https://github.com/389ds/389-ds-base/blob/master/dirsrvtests/tests/suites/replication/changelog_test.py#L28

Just by adding this line:

    pytestmark = pytest.mark.tier1

@jchapma
Copy link
Contributor Author

jchapma commented Apr 16, 2021

Joining to Mark's comments.
And if the run with ASAN is clean - looks good :)

ASAN run is clean

Description: When the retro changelog plugin is enabled it writes the
             added/modified values to the "cn-changelog" suffix. In
             some cases an entries attribute values can be of a
             sensitive nature and should be excluded. This RFE adds
             functionality that will allow an admin exclude certain
             attributes from the retro changelog DB.

Relates: 389ds#4701

Reviewed by: mreynolds389, droideck (Thanks folks)
log.fatal("Changelog search failed, error: " +str(e))
assert False

def test_retrocl_exclude_attr_mod(topology_st):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modify operation test added

@@ -424,6 +430,15 @@ entry2reple(Slapi_Entry *e, Slapi_Entry *oe, int optype)
}
slapi_entry_add_values(e, retrocl_changetype, vals);

/* Does this entry contain any excluded attributes */
for (attrs = oe->e_attrs; attrs != NULL; attrs = attrs->a_next) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line 434 -> 440 are the bug fix changes

Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

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

Great!
Looks good to me!

@jchapma jchapma merged commit e501b83 into 389ds:master Apr 27, 2021
jchapma added a commit to jchapma/389-ds-base that referenced this pull request Apr 30, 2021
Description: When the retro changelog plugin is enabled it writes the
             added/modified values to the "cn-changelog" suffix. In
             some cases an entries attribute values can be of a
             sensitive nature and should be excluded. This RFE adds
             functionality that will allow an admin exclude certain
             attributes from the retro changelog DB.

Relates: 389ds#4701

Reviewed by: mreynolds389, droideck (Thanks folks)
jchapma added a commit that referenced this pull request Apr 30, 2021
…4746)

Description: When the retro changelog plugin is enabled it writes the
             added/modified values to the "cn-changelog" suffix. In
             some cases an entries attribute values can be of a
             sensitive nature and should be excluded. This RFE adds
             functionality that will allow an admin exclude certain
             attributes from the retro changelog DB.

Relates: #4701

Reviewed by: mreynolds389, droideck (Thanks folks)
jchapma added a commit that referenced this pull request Apr 30, 2021
Description: When the retro changelog plugin is enabled it writes the
             added/modified values to the "cn-changelog" suffix. In
             some cases an entries attribute values can be of a
             sensitive nature and should be excluded. This RFE adds
             functionality that will allow an admin exclude certain
             attributes from the retro changelog DB.

Relates: #4701

Reviewed by: mreynolds389, droideck (Thanks folks)
jchapma added a commit to jchapma/389-ds-base that referenced this pull request Jun 14, 2021
Description: The RetroCL exclude attribute RFE is dependent on functionality of the
	     EntryUUID bug fix, that didn't make into the latest build. This breaks the
             RetroCL exclude attr feature so we need to provide a workaround.

Fixes: 389ds#4791

Relates: 389ds#4723

Relates: 389ds#4224

Reviewed by: tbordaz, droideck (Thank you)
jchapma added a commit that referenced this pull request Jun 14, 2021
Description: The RetroCL exclude attribute RFE is dependent on functionality of the
	     EntryUUID bug fix, that didn't make into the latest build. This breaks the
             RetroCL exclude attr feature so we need to provide a workaround.

Fixes: #4791

Relates: #4723

Relates: #4224

Reviewed by: tbordaz, droideck (Thank you)
jchapma added a commit that referenced this pull request Jun 15, 2021
Description: The RetroCL exclude attribute RFE is dependent on functionality of the
	     EntryUUID bug fix, that didn't make into the latest build. This breaks the
             RetroCL exclude attr feature so we need to provide a workaround.

Fixes: #4791

Relates: #4723

Relates: #4224

Reviewed by: tbordaz, droideck (Thank you)
@jchapma jchapma deleted the issue-4701-retrocl branch March 28, 2023 14:08
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

3 participants