Skip to content

add comments to audit module#7635

Merged
DaRosenberg merged 3 commits into
OrchardCMS:1.10.xfrom
infofromca:auditComment
Mar 31, 2017
Merged

add comments to audit module#7635
DaRosenberg merged 3 commits into
OrchardCMS:1.10.xfrom
infofromca:auditComment

Conversation

@infofromca

Copy link
Copy Markdown
Contributor

No description provided.

public virtual int Id { get; set; }

/// <summary>
/// The happend time of the event.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Bad English, rephrase as:
"The time when the event occurred."

public virtual DateTime CreatedUtc { get; set; }

/// <summary>
/// The user name of the user who made the event..

@DaRosenberg DaRosenberg Mar 31, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Better phrased as:
"The user name of the user who caused the event to occur."
And remove double periods at the end.

public virtual string Comment { get; set; }

/// <summary>
/// The ip address of the user who made the event.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Rephrase as:
"The IP adress of the user who caused the event to occur."

@@ -1,6 +1,16 @@
namespace Orchard.AuditTrail.Models {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Apply trailing periods consistently.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

applied


namespace Orchard.AuditTrail.Services {
/// <summary>
/// Serialize or deserialize event data.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Dependencies should be described with more context IMO. Perhaps better phrased as something like:
"A service responsible for serializing and deserializing audit trail event data."

@DaRosenberg

Copy link
Copy Markdown
Member

I like the initiative of providing XML comments!

I've written a few comments - if you could go over the PR and make it a bit more consistent with regards to punctuation etc, that would be truly great!

@DaRosenberg

Copy link
Copy Markdown
Member

Nice work, thanks.

@DaRosenberg
DaRosenberg merged commit d686d68 into OrchardCMS:1.10.x Mar 31, 2017
@infofromca
infofromca deleted the auditComment branch April 18, 2017 06:35
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.

3 participants