Skip to content

Conversation

@ladal1
Copy link

@ladal1 ladal1 commented Feb 16, 2021

No description provided.

@ladal1 ladal1 marked this pull request as ready for review February 18, 2021 14:48
return False

def error_message(self, **kwargs):
return "Django validator failed in field {}".format(self.field_name)
Copy link
Owner

Choose a reason for hiding this comment

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

Toto by graphql melo umet samo od sebe priradit ke konkretnimu fieldu

Copy link
Author

Choose a reason for hiding this comment

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

Nevím jak by to vymyslela, protože tak teď nezjistí z toho které políčko to v té funkci z build_validation_fn pokazilo

return "Django validator failed in field {}".format(self.field_name)


class ForeignKeyValidator(Validator):
Copy link
Owner

Choose a reason for hiding this comment

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

zatim asi OK takhle, podle me se casem ukaze, ze je to prilis coarse-grained

Copy link
Author

Choose a reason for hiding this comment

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

Possible, uvidíme

for validator in validators:
if not validator.validation_statement(kwargs["request"], value=kwargs["params"][param_field]):
if param_field in kwargs["params"] and \
not validator.validation_statement(kwargs["request"], value=kwargs["params"][param_field]):
Copy link
Owner

Choose a reason for hiding this comment

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

potom prosim sjednot API s permissions:

def is_valid(...):
    return self.validation_statement(...)

a potom validator.is_valid(...)

@karlosss karlosss force-pushed the generate-frontend branch 2 times, most recently from 9e46b75 to 6923442 Compare February 22, 2021 11:34
@ladal1 ladal1 changed the title Debug PR once again Validators, and Query scanning Apr 23, 2021
ladal1 added 4 commits April 23, 2021 15:22
Documentation push


Submodule connection


remove documentation


Documentation submodule

remove documentation


gitmodules


Documentation commit


Try to track the master branch


Gitmodules
Documentation update
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.

2 participants