-
Notifications
You must be signed in to change notification settings - Fork 3
Updating the main to the Develop branch #8
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
Changes from all commits
b83ae8a
01c820b
0ea4478
56684c0
8c7dc22
04ac814
e885f01
bccac70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CONNECTION_STRING="Put you connection string here then rename file to .env" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,10 +2,10 @@ namespace AskFm.DAL.Enums; | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| public enum NotificationStatus | ||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||
| ANSWER = 1, | ||||||||||||||||||||||||||||||||
| QUESTION = 2, | ||||||||||||||||||||||||||||||||
| FOLLOW = 3, | ||||||||||||||||||||||||||||||||
| COMMENT_LIKE = 4, | ||||||||||||||||||||||||||||||||
| QUESTION_LIKE = 5, | ||||||||||||||||||||||||||||||||
| REPLAY = 6 | ||||||||||||||||||||||||||||||||
| ANSWER , | ||||||||||||||||||||||||||||||||
| QUESTION, | ||||||||||||||||||||||||||||||||
| FOLLOW, | ||||||||||||||||||||||||||||||||
| COMMENT_LIKE, | ||||||||||||||||||||||||||||||||
| QUESTION_LIKE, | ||||||||||||||||||||||||||||||||
| REPLAY | ||||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify enum value changes and fix naming issues. Similar to Consider fixing naming consistency and the typo: - ANSWER ,
- QUESTION,
- FOLLOW,
- COMMENT_LIKE,
- QUESTION_LIKE,
- REPLAY
+ Answer,
+ Question,
+ Follow,
+ CommentLike,
+ QuestionLike,
+ Reply🏁 Script executed: #!/bin/bash
# Check for existing NotificationStatus usage and values
rg -A 3 -B 3 "NotificationStatus" --type cs
ast-grep --pattern 'NotificationStatus.$_'Length of output: 902 Rename enum members to PascalCase and correct typo The Files to update:
Suggested diff: public enum NotificationStatus
{
- ANSWER ,
- QUESTION,
- FOLLOW,
- COMMENT_LIKE,
- QUESTION_LIKE,
- REPLAY
+ Answer,
+ Question,
+ Follow,
+ CommentLike,
+ QuestionLike,
+ Reply
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| namespace AskFm.DAL.Enums; | ||
| public enum ThreadStatus | ||
| { | ||
| PRIVATE = 1, | ||
| PUBLIC = 2 | ||
| PRIVATE, | ||
| PUBLIC, | ||
| Closed, | ||
| PRIVATEQUESTION | ||
| } |
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.
Add null checking and error handling for environment variable.
The code doesn't handle the case where the
CONNECTION_STRINGenvironment variable is missing or null, which will cause a runtime exception when trying to configure the database context.Apply this diff to add proper error handling:
Also update the variable usage:
📝 Committable suggestion
🤖 Prompt for AI Agents