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

Add ProfileKey to AnalysisProfiles table #1987

Merged
merged 3 commits into from
Apr 26, 2022
Merged

Conversation

toropok
Copy link
Contributor

@toropok toropok commented Apr 26, 2022

microfix

Description of the issue/feature this PR addresses

ProfileKey does not appear in the Profiles table
Linked issue: https://github.com/senaite/senaite.core/issues/

Current behavior before PR

No profile key
image

Desired behavior after PR is merged

ProfileKey shown

I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@@ -122,6 +122,7 @@ def folderitem(self, obj, item, index):

item["replace"]["Title"] = get_link(url, value=title)
item["Description"] = description
item["ProfileKey"] = obj.ProfileKey
Copy link
Contributor

Choose a reason for hiding this comment

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

please use the object getter instead of accessing the attribute directly.

=> obj.getProfileKey()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, my bad. Corrected

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Thanks Leonid 👍

@ramonski ramonski merged commit b3c4757 into senaite:2.x Apr 26, 2022
@xispa xispa added the To port label Jul 3, 2022
@xispa xispa removed the To port label Jul 14, 2022
ramonski added a commit that referenced this pull request Jul 14, 2022
@toropok toropok deleted the patch-15 branch May 26, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants