-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Added missing GenericLogEntry log entry type in Script module #15591
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
[dotnet] [bidi] Added missing GenericLogEntry log entry type in Script module #15591
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
dotnet/src/webdriver/BiDi/Modules/Log/LogEntry.cs:36
- [nitpick] The parameter name 'Type' in GenericLogEntry may be easily confused with C# type metadata. Consider renaming it to 'logType' or 'entryType' for improved clarity.
public record GenericLogEntry(BiDi BiDi, string Type, Level Level, Script.Source Source, string Text, DateTimeOffset Timestamp)
User description
https://w3c.github.io/webdriver-bidi/#types-log-logentry
🔗 Related Issues
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Added support for
GenericLogEntryin BiDi log module.Updated
LogEntryConverterto handle unrecognized log types.Introduced
GenericLogEntryrecord as a fallback log entry type.Changes walkthrough 📝
LogEntryConverter.cs
Enhance LogEntryConverter with fallback deserializationdotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs
LogEntryConverterto deserialize unrecognized log types.GenericLogEntryfor unknown log entry types.LogEntry.cs
Add GenericLogEntry record for fallback handlingdotnet/src/webdriver/BiDi/Modules/Log/LogEntry.cs
GenericLogEntryrecord for fallback log entries.