-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Show either HTTP Response Header Keys or HTTP Response Headers, not both, on Log Entries #566
Comments
@TrangOul yeah, I think this makes sense to do - for the
So, I'm going to create several new checkbox fields on
That should make the data model consistent, and then I'll use |
@TrangOul one follow-up question for you.... do you think it would be useful to sort the values in |
@jongpie, speaking of headers order, this is what
As your tool is supposed just to log the original response, not to process it, I'd keep the original order. |
…ional visibility for the fields HttpResponseHeaderKeys__c and HttpResponseHeaders__c, based on the new checkbox field HasHttpResponseHeaders__c
@TrangOul that makes sense, I'll leave the ordering as-is. Thanks for the link/info about RFC 7230! I've created PR #569 for this issue - it adds the new checkbox fields that I mentioned above, and adds some conditional visibility to the |
…569) * Added new checkbox fields on LogEntry__c for long textarea fields that didn't previously have an equivalent checkbox field * Rewrote several tests in LogEntryHandler_Tests to be unit tests without DML * Resolved #566 by updating LogEntryRecordPage.flexipage to have conditional visibility for the fields HttpResponseHeaderKeys__c and HttpResponseHeaders__c, based on the new checkbox field HasHttpResponseHeaders__c
New Feature Summary
The latest release introduces a feature of logging HTTP header values together with keys (#564) in the field
LogEntry__c.HttpResponseHeaders__c
. For backward compatibility the old feature of logging just the keys in the fieldLogEntry__c.HttpResponseHeaderKeys__c
is still present.Currently both fields are present on the Log Entry FlexiPage (shown in the screenshot in #564). Since both are of long text data type, and in the case of most logged callouts they contain many lines, the page layout is quite cluttered, especially given the fact that HTTP Response Headers field contain all the information from HTTP Response Header Keys.
Would it be possible to show only one of those Log Entry fields, conditionally, depending on the flag
StoreHttpResponseHeaderValues
(or alternatively whetherHttpResponseHeaders__c
are populated)?Since long text areas cannot be used in field visibility filter on FlexiPages, nor can custom metadata, a new technical field may be needed.
Please consider the following (
LogEntryEventBuilder.cls
):, then use
AreHttpResponseHeadersLogged__c
as a filter inLogEntryRecordPage.flexipage
.The text was updated successfully, but these errors were encountered: