blockstore icon indicating copy to clipboard operation
blockstore copied to clipboard

[BD-14] fix: bundles list view Request-URI Too Long error

Open dyudyunov opened this issue 3 years ago • 9 comments

There could be a lot of bundles, so we can't use query params because it will raise the "Request-URI Too Long" error. Use the request data in such a case.

dyudyunov avatar Aug 24 '22 11:08 dyudyunov

Thanks for the pull request, @dyudyunov!

When this pull request is ready, tag your edX technical lead.

openedx-webhooks avatar Aug 24 '22 11:08 openedx-webhooks

@ormsbee It seems somewhat logical to me that ordinal ids might get too long, but is this solution more future proof than switching to a fixed-length hash?

connorhaugh avatar Aug 31 '22 13:08 connorhaugh

@ormsbee It seems somewhat logical to me that ordinal ids might get too long, but is this solution more future proof than switching to a fixed-length hash?

Yes, because in some moment there could be a lot of libraries and each library id (block_id) will be used in the query parameter uuid

I think that managing the hash length is equal to changing the URL length limit and isn't so flexible. The body length limit is pretty big to not worry about reaching it.

dyudyunov avatar Sep 01 '22 06:09 dyudyunov

So I tested this using https://github.com/openedx/edx-platform/pull/30895 as my branch of edx-platform. I was able to perform Create Read Update (no delete because I'm not sure it works) operations on a library locally. With that in mind, I am now happy to thumb this PR and then edx-platform one. What I am interested in, is how we plan to deploy these changes and the order we have considered. I assume it would be would be:

  1. merge https://github.com/openedx/edx-platform/pull/30895, wait for it to deploy
  2. merge this PR, deploy it. Am I correct?

connorhaugh avatar Sep 30 '22 13:09 connorhaugh

  1. merge [BD-14] feat: implement V2 libraries usage for library content block edx-platform#30895, wait for it to deploy
  2. merge this PR, deploy it. Am I correct?

Yes, the sequence is correct (as I've described in the edx-platform PR)

dyudyunov avatar Oct 07 '22 15:10 dyudyunov

@dyudyunov @connorhaugh What's left to get this PR and the edx-platform one merged?

bradenmacdonald avatar Oct 21 '22 19:10 bradenmacdonald

@dyudyunov @connorhaugh What's left to get this PR and the edx-platform one merged?

All seems to be ready for that 🙂

dyudyunov avatar Oct 24 '22 07:10 dyudyunov

@ormsbee @connorhaugh would you mind reviewing prior to merge if you haven't already?

mphilbrick211 avatar Oct 26 '22 01:10 mphilbrick211

@ormsbee @connorhaugh would you mind reviewing prior to merge if you haven't already?

Friendly ping on this :)

mphilbrick211 avatar Nov 03 '22 13:11 mphilbrick211

@ormsbee Hi Dave - could you please review?

mphilbrick211 avatar Nov 07 '22 16:11 mphilbrick211

BD-14 project was closed in the RG and all additional work should be scheduled with our PMs

dyudyunov avatar Dec 28 '22 13:12 dyudyunov

@jristau1984 is this PR still relevant?

e0d avatar Jan 06 '23 14:01 e0d

Hi @e0d - Yes, this and several related PRs are still relevant. 2U is currently blocked on rolling out this functionality until the Problem Editor works in the course authoring MFE; that editor buildout is currently in flight. The review of this and the related PRs is happening in parallel to that buildout, and we expect to complete all of these reviews in the next few weeks. Please feel free to reach out if there are any questions or concerns!

jristau1984 avatar Jan 06 '23 15:01 jristau1984

@dyudyunov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

openedx-webhooks avatar Apr 25 '23 14:04 openedx-webhooks