Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Maka
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Maka
Commits
70741b74
Commit
70741b74
authored
5 months ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Rename create rule names in mutations
parent
6f549d5e
No related branches found
Branches containing commit
No related tags found
2 merge requests
!4
Resolve "Add permissions/rules"
,
!2
Frontend
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
aleksis/apps/maka/schema/effort.py
+2
-2
2 additions, 2 deletions
aleksis/apps/maka/schema/effort.py
aleksis/apps/maka/schema/grade.py
+1
-1
1 addition, 1 deletion
aleksis/apps/maka/schema/grade.py
aleksis/apps/maka/schema/grade_set.py
+2
-2
2 additions, 2 deletions
aleksis/apps/maka/schema/grade_set.py
with
5 additions
and
5 deletions
aleksis/apps/maka/schema/effort.py
+
2
−
2
View file @
70741b74
...
...
@@ -33,7 +33,7 @@ class EffortTypeType(
class
EffortTypeBatchCreateMutation
(
SharedSecretBatchCreateMixin
,
BaseBatchCreateMutation
):
class
Meta
:
model
=
EffortTypeModel
permissions
=
(
"
maka.
create
_efforttype_rule
"
,)
permissions
=
(
"
maka.
add
_efforttype_rule
"
,)
only_fields
=
(
"
name
"
,
"
color
"
,
...
...
@@ -74,7 +74,7 @@ class EffortType(SharedSecretObjectType, PermissionsTypeMixin, DjangoFilterMixin
class
EffortBatchCreateMutation
(
SharedSecretBatchCreateMixin
,
BaseBatchCreateMutation
):
class
Meta
:
model
=
EffortModel
permissions
=
(
"
maka.
create
_effort_rule
"
,)
permissions
=
(
"
maka.
add
_effort_rule
"
,)
only_fields
=
(
"
name
"
,
"
effort_type
"
,
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/maka/schema/grade.py
+
1
−
1
View file @
70741b74
...
...
@@ -30,7 +30,7 @@ class GradeType(SharedSecretObjectType, PermissionsTypeMixin, DjangoFilterMixin,
class
GradeBatchCreateMutation
(
SharedSecretBatchCreateMixin
,
BaseBatchCreateMutation
):
class
Meta
:
model
=
Grade
permissions
=
(
"
maka.
create
_grade_rule
"
,)
permissions
=
(
"
maka.
add
_grade_rule
"
,)
only_fields
=
(
"
person
"
,
"
grade
"
,
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/maka/schema/grade_set.py
+
2
−
2
View file @
70741b74
...
...
@@ -32,7 +32,7 @@ class GradeSetType(
class
GradeSetBatchCreateMutation
(
SharedSecretBatchCreateMixin
,
BaseBatchCreateMutation
):
class
Meta
:
model
=
GradeSet
permissions
=
(
"
maka.
create
_gradeset_rule
"
,)
permissions
=
(
"
maka.
add
_gradeset_rule
"
,)
only_fields
=
(
"
name
"
,)
...
...
@@ -70,7 +70,7 @@ class GradeChoiceType(PermissionsTypeMixin, DjangoFilterMixin, DjangoObjectType)
class
GradeChoiceBatchCreateMutation
(
BaseBatchCreateMutation
):
class
Meta
:
model
=
GradeChoice
permissions
=
(
"
maka.
create
_gradechoice_rule
"
,)
permissions
=
(
"
maka.
add
_gradechoice_rule
"
,)
only_fields
=
(
"
grade_set
"
,
"
name
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment