-
Notifications
You must be signed in to change notification settings - Fork 29
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-21148] check pipeline size on change and before save / deploy #1296
base: develop
Are you sure you want to change the base?
Conversation
@@ -1456,6 +1457,16 @@ class HydratorPlusPlusTopPanelCtrl { | |||
} | |||
|
|||
let uploadedFile = files[0]; | |||
|
|||
const MB = 1024 * 1024; // Bytes | |||
if (files[0].size > 2 * MB) { |
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.
can we make it configurable from CConf?
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.
Yeah, we can. Would require backend changes also. We would need the value inside CDAP_CONFIG.
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.
For now, we are going to to keep this size limit as a static value in the UI.
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.
Let's make it configurable from cConf if possible?
We are planning to introduce chunking soon, so UI check can become a blocker during testing
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.
Yeah, we can. Would require backend changes also. We would need the value inside CDAP_CONFIG.
I don't think we need the changes in backend for this.
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.
yes, we do. Here is the corresponding backend PR: cdapio/cdap#15921
45e6fd3
to
5b2bc33
Compare
dadb725
to
5267dd1
Compare
Check pipeline size is less than 2MB
Description
Summary of changes
PR Type
Links
Jira: CDAP-21148
Test Plan
Screenshots
The pipeline in this screenshot has a large description
