Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Added EventName property to the PackageValidationAuditEntry #133

Merged
merged 3 commits into from
Apr 25, 2017
Merged

Conversation

agr
Copy link
Contributor

@agr agr commented Apr 22, 2017

For the #405.
Needed a way to easily distinguish between audit entries for the monitoring.

@dnfclas
Copy link

dnfclas commented Apr 22, 2017

@agr,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


namespace NuGet.Jobs.Validation.Common
{
public static class ValidationEvent
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider turning this into enums

Choose a reason for hiding this comment

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

If you're concerned about the human readability of having an enum, I would suggest having two fields

        {
            "ValidatorName": "validator-unzip",
            "Message": "Found 4 parts in package.",
            "Timestamp": "2017-03-31T22:09:00.7356706+00:00"
            "EventId": 1,
            "EventName": "BeforeVirusScan"
        }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,71 @@
using System;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a copyright header.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


namespace NuGet.Jobs.Validation.Common
{
public static class ValidationEvent

Choose a reason for hiding this comment

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

If you're concerned about the human readability of having an enum, I would suggest having two fields

        {
            "ValidatorName": "validator-unzip",
            "Message": "Found 4 parts in package.",
            "Timestamp": "2017-03-31T22:09:00.7356706+00:00"
            "EventId": 1,
            "EventName": "BeforeVirusScan"
        }

@agr agr merged commit 0a36a7a into dev Apr 25, 2017
@agr agr deleted the dev-agr-405 branch April 25, 2017 00:42
joelverhagen pushed a commit that referenced this pull request Sep 27, 2019
joelverhagen pushed a commit that referenced this pull request Oct 26, 2020
joelverhagen pushed a commit that referenced this pull request Oct 26, 2020
* Added EventName property to the PackageValidationAuditEntry to easier distinguish between types of the entries.

* Added copyright header

* Changed ValidationEvent to enum.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants