Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Merge requests
!327
Refactor update creation api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor update creation api
refactor_update_creation_api
into
master
Overview
7
Commits
97
Pipelines
6
Changes
1
Merged
Samuel GAIST
requested to merge
refactor_update_creation_api
into
master
4 years ago
Overview
7
Commits
97
Pipelines
6
Changes
1
Expand
This merge request does the following:
Raise DRF errors rather than returning response to take advantage of the DRF exception handling mechanism
Create serialisers for PUT request to simplify the code
Improve validation checks in several places
Fixes several issues in DRF infrastructure uses
Fixes JSON fields handling
Remove routes that do no fully qualify objects
Implement a custom DRF exception handler that will allow to log errors
Improve testing
Improve permission management
Edited
4 years ago
by
Samuel GAIST
0
0
Merge request reports
Viewing commit
98397917
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
98397917
[libraries][serializers] Set beat_core_class correctly
· 98397917
Samuel GAIST
authored
4 years ago
beat/web/libraries/serializers.py
+
1
−
1
Options
@@ -43,7 +43,7 @@ from .models import Library
class
LibraryCreationSerializer
(
CodeCreationSerializer
):
class
Meta
(
CodeCreationSerializer
.
Meta
):
model
=
Library
beat_core_class
=
beat
.
core
.
library
beat_core_class
=
beat
.
core
.
library
.
Library
# ----------------------------------------------------------
Loading