Skip to content

Remove dead code from DRF and properly authenticate with Django OAuth Toolkit - #302

Merged
brianhelba merged 1 commit into
mainfrom
drf
Jan 29, 2026
Merged

brianhelba merged 1 commit into
mainfrom
drf

Conversation

@brianhelba

@brianhelba brianhelba commented Jan 15, 2026 •

Copy link
Copy Markdown
Member

No description provided.

Comment thread bats_ai/settings/base.py

@BryonLewis BryonLewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Got around to testing this and everything I checked seems to work properly.
All this seems to be leftover stuff before I swapped to using ninja for everything.

This was good because it led to be testing and looking at some client code.
I did a check of the client side code for the api and realized there are some references to proccessing-task and processing-task/filtered that don't have endpoints. I created an issue for it here: #306

Otherwise I think this is good to merge in.

@brianhelba brianhelba changed the title Remove dead code from DRF Remove dead code from DRF and properly authenticate with Django OAuth Toolkit Jan 29, 2026
@brianhelba

Copy link
Copy Markdown
Member Author

@naglepuff @BryonLewis Can you take a look again? I rewrote the authentication function to use the correct logic from Django OAuth Toolkit; I'm not sure why the old one was implemented that way.

@brianhelba

Copy link
Copy Markdown
Member Author

Actually, I'm going to split out my change to the auth function, since it's causing tests to break, and the rest was already approved.

@brianhelba
brianhelba merged commit a4549ea into main Jan 29, 2026
5 checks passed
@brianhelba
brianhelba deleted the drf branch January 30, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants