Skip to content

SAN-3947 - Set file size limits #1561

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

Merged
merged 1 commit into from
Apr 25, 2016
Merged

SAN-3947 - Set file size limits #1561

merged 1 commit into from
Apr 25, 2016

Conversation

Myztiq
Copy link
Contributor

@Myztiq Myztiq commented Apr 22, 2016

  • Added logic to handle file too large errors
  • @thejsj
  • Reviewer 2

screen shot 2016-04-22 at 4 07 51 pm

@Myztiq Myztiq added the p0 label Apr 22, 2016
@runnabot
Copy link

The latest push to PR-1561 is running on SAN-3947-file-size-limits-runnable-angular

@Nathan219
Copy link
Member

So the api is going to attempt to fetch the file, but then return an error?

@Myztiq
Copy link
Contributor Author

Myztiq commented Apr 23, 2016

@Nathan219 Check this pr: CodeNow/api#1484

@@ -9,6 +9,11 @@
)
p.p We're Sorry, but your file is in another castle… and that castle just blew up! 😱

.blank-panel(
ng-if = "!loading && hasError === 'tooLarge'"
)
Copy link
Member

Choose a reason for hiding this comment

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

Would it be better to reuse the existing .blank-panel element and replace the text?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we did that'd result in having 3 ng-if's because we only want blank-panel to show if there is an error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it's a matter of preference, would you prefer I did that? @runnabro

Copy link
Member

Choose a reason for hiding this comment

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

I was thinking that !loading && hasError might cover it. I just thought it would be simpler. Do what you think is simpler.

@Myztiq Myztiq merged commit 331ff3f into master Apr 25, 2016
@Myztiq Myztiq deleted the SAN-3947-file-size-limits branch April 25, 2016 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants