Josh Wedekind

Results 35 comments of Josh Wedekind

Note: that time is in milliseconds. On one particular view, I had to up it 2000 (or 2 seconds) because it loads 50 pages worth of images.

Yes. I was able to figure it out with DRF request. I just added this method to my viewset. ```python3 def get_role_id(self, request): if request.user.is_superuser: return CustomRole.Admin else: return CustomRole.Customer...

Forgot one thing. In another case, I needed the actual entity _instance_. For that case, I was able to access it with: `self.get_instance()` in the `get_role_id()` method. And it looks...

Hmm.. Good point. I see on our [website](https://rushjs.io/pages/intro/welcome/) that we mention "Cyclic dependencies", but don't really say much else about them, other than the comment in the rush.json [config reference...

I changed the title of your issue to better reflect my understanding of it. However, if I am wrong, please feel free to change it back and add further clarification...

Thanks for the bug report. It looks like rush rebuild will correctly handle an empty build script (printing out "had an empty script"), but does not handle the missing build...

Now that ModelSerializer is generic...what is the syntax to subclass from it? ```python class ItemSerializer(serializers.ModelSerializer): ^ Missing type parameters for generic type "ModelSerializer" mypy ```

@henribru Thanks for responding! I should have mentioned that I did try that and mypy was happy, but the app crashed with: `TypeError: 'SerializerMetaclass' object is not subscriptable` I am...

@henribru Thank you, SOO MUCH! Upgrading DRF fixed my SerializerMetaclass type issue, and from the article you linked to, I found that adding `from __future__ import annotations` to the top...

If you're referring to the AWS S3 signatures that let you specify expiration, etc. I've found that _this_ line of code intercepts the `generate_presigned_url` method when using a custom domain...