-
Notifications
You must be signed in to change notification settings - Fork 339
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
[CDAP-17068] Display message when field level lineage is too large to… #12453
Conversation
@@ -250,10 +269,35 @@ class LineageSummary extends React.Component<{ classes }, ILineageState> { | |||
</div> | |||
); | |||
} | |||
|
|||
if (error) { |
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.
we can do
if (error) return null;
return (
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.
no we cannot. If there is error we want to display this, otherwise, there's already an actual component being rendered
// there is proper pagination for the FLL response from backend. This limit is approximately | ||
// 1500 fields going into 1500 fields | ||
function isFLLResponseTooLarge(response) { | ||
const CHARACTER_LIMIT = 50000; |
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.
Should this be defined at the top of the file?
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.
the constant is not really applicable anywhere else
cdap-ui/app/cdap/components/FieldLevelLineage/v2/Context/FllContext.tsx
Outdated
Show resolved
Hide resolved
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.
lgtm!
1a7a9cd
to
10f56a2
Compare
… display
Either the response is greater than 50K characters, or API takes longer than 20 seconds, we will display message that Field level lineage data is too large to display.
JIRA: https://issues.cask.co/browse/CDAP-17068
Build: https://builds.cask.co/browse/CDAP-UDUT725