Skip to content

RSK-53: Complete US-02 risk rule management and historyRsk 53 fix us 02 - #18

Merged
MParsa-ES merged 7 commits into
mainfrom
RSK_53_fix_us_02
Nov 7, 2026
Merged

MParsa-ES merged 7 commits into
mainfrom
RSK_53_fix_us_02

Conversation

@AliJohari05

Copy link
Copy Markdown
Collaborator

تغییرات

  • اضافه شدن APIهای ساخت، ویرایش و مشاهده تاریخچه قوانین ریسک
  • ثبت نسخه قانون، کاربر تغییر‌دهنده و وضعیت قبل و بعد از تغییر
  • جلوگیری از ویرایش با revision قدیمی و پشتیبانی از Idempotency-Key
  • اعتبارسنجی پارامترهای قانون و محافظت از تاریخچه در PostgreSQL
  • اضافه شدن تست‌های واحد، یکپارچگی و درخواست‌های هم‌زمان
  • به‌روزرسانی قرارداد OpenAPI و انواع فرانت‌اند
  • اضافه شدن راهنمای تست API، ماتریس تست US-02 و پیش‌نویس ماتریس US-08

نتیجه بررسی‌ها

  • ۹۴ تست موفق
  • بررسی Ruff و اعتبارسنجی OpenAPI موفق
  • build فرانت‌اند موفق

محدودیت شناخته‌شده

تغییر مستقیم RiskRule با ORM یا SQL می‌تواند مسیر سرویس و ثبت تاریخچه را دور بزند. برای محیط عملیاتی، محدودسازی نقش‌های دیتابیس و محافظت از مسیر نوشتن نیازمند تصمیم تیم است.

Comment thread pytest.ini Resolved
Comment thread s4_rsk/rules/validators.py Resolved
Comment thread s4_rsk/rules/views.py Resolved
MParsa-ES
MParsa-ES previously approved these changes Nov 7, 2026

@MParsa-ES MParsa-ES left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Overall a good addition of the rules to the project but please review the comments I've put and solve them

@MParsa-ES MParsa-ES left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for fixing the problems I mentioned

@MParsa-ES
MParsa-ES merged commit ed42876 into main Nov 7, 2026
1 check passed
@MParsa-ES
MParsa-ES deleted the RSK_53_fix_us_02 branch November 7, 2026 20:40
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