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

#101 add createdon etc attributes to context entity so they are avail… #104

Merged
merged 4 commits into from
Sep 7, 2020
Merged

#101 add createdon etc attributes to context entity so they are avail… #104

merged 4 commits into from
Sep 7, 2020

Conversation

MattTrinder1
Copy link
Contributor

…able to post operation plugins

@MattTrinder1
Copy link
Contributor Author

#101

Copy link
Member

@TomMalow TomMalow left a comment

Choose a reason for hiding this comment

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

Looks overall good. Only a single area were i believe we can generalize the solution a little

return;
}

item1["createdon"] = postImage.GetAttributeValue<DateTime>("createdon");
Copy link
Member

@TomMalow TomMalow Aug 10, 2020

Choose a reason for hiding this comment

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

The code handles these 4 attributes in the same way. Can we maybe generalize? Maybe move the attributes to a list that the code iterates over and adds them to the item1. This will also make it easier to extend with additional attributes. Both me and @magesoe has a suspicion that there are other system attributes we need to do this with as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made the solution more generic, with a list of system attribute names which is iterated over.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could #92 be resolved via this as well ?

@magesoe
Copy link
Collaborator

magesoe commented Sep 7, 2020

Added in 1.3.0

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.

4 participants