-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: validation rules #861
refactor: validation rules #861
Conversation
81c5165
to
7414fb3
Compare
https://github.com/codeigniter4/shield/actions/runs/6323482106/job/17200933174 |
f0070f5
to
7f0d5b3
Compare
I separated the Composer cache for lowest dependencies, but still got
https://github.com/codeigniter4/shield/actions/runs/6334017276/job/17203006457?pr=861 |
There is a sample workflow that deletes the used cache of merged PRs. We can use that. |
Also, we can unify the naming of caches so that it will not create numerous caches. |
@paulbalandan What do you mean? |
We can use this sample workflow to delete the caches of merged PRs. |
Okay, I will remove cache manually. $ gh api -H "Accept: application/vnd.github+json" "/repos/codeigniter4/shield/actions/cache/usage"
{
"full_name": "codeigniter4/shield",
"active_caches_size_in_bytes": 173837775,
"active_caches_count": 61
} |
I removed some caches, but the cache usage is the same. $ gh api -H "Accept: application/vnd.github+json" "/repos/codeigniter4/shield/actions/cache/usage"
{
"full_name": "codeigniter4/shield",
"active_caches_size_in_bytes": 173837775,
"active_caches_count": 61
} Updated. $ gh api -H "Accept: application/vnd.github+json" "/repos/codeigniter4/shield/actions/cache/usage"
{
"full_name": "codeigniter4/shield",
"active_caches_size_in_bytes": 119023390,
"active_caches_count": 37
} |
Again No space left on device.
https://github.com/codeigniter4/shield/actions/runs/6334017276/job/17203911560?pr=861 |
67c7c1d
to
b319800
Compare
b319800
to
a54e614
Compare
I created a new PR for GitHub Actions. #863 |
a54e614
to
7a680c8
Compare
@@ -203,26 +203,36 @@ class Auth extends BaseConfig | |||
* The validation rules for username | |||
* -------------------------------------------------------------------- | |||
* | |||
* @var string[] | |||
* Do not use string rules like `required|valid_email`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok,
shouldn't the changes be applied to the documentation?
// 'rules' => 'required|max_length[30]|min_length[3]|regex_match[/\A[a-zA-Z0-9\.]+\z/]',
'rules' => 'required|max_byte[72]',
// and ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
7a680c8
to
8badb41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks🥀.
Description
ValidationRules
classChecklist: