-
Notifications
You must be signed in to change notification settings - Fork 553
feat: Add submit feedbacks #1639
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
Conversation
@nikit19 @liveHarshit please review |
Also the feedback recyclerview isn't updating after feedback submission any ideas why ? |
@liveHarshit review |
Current logic used to prevent reloading of fragments on rotation is causing these bugs. #1520 is a similar bug. |
} | ||
|
||
private fun writefeedback() { | ||
val layout = layoutInflater.inflate(R.layout.dialog_feedback, null) |
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.
Not needed directly put layout in setView of AlertDialog. I had to do this in changePassword dialog because I wanted to run code without button press.
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.
I think layout is being referred for getting text and add textChangedListeners. So I suppose its fine to inflate layout here
@iamareebjamal |
@iamareebjamal nm it was because of onlineApiResourceConverter.enableSerializationOption(SerializationFeature.INCLUDE_RELATIONSHIP_ATTRIBUTES) |
@nikit19 please review |
@iamareebjamal @nikit19 updated |
Build is failing |
@iamareebjamal updated |
app/src/main/java/org/fossasia/openevent/general/auth/UserId.kt
Outdated
Show resolved
Hide resolved
Resolved Conflicts. Should I squash them first ? |
@@ -239,8 +238,6 @@ val networkModule = module { | |||
EventSubTopic::class.java, Feedback::class.java, Speaker::class.java, | |||
EventFAQ::class.java) | |||
|
|||
onlineApiResourceConverter.enableSerializationOption(SerializationFeature.INCLUDE_RELATIONSHIP_ATTRIBUTES) |
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.
Why removed?
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.
{
"data": {
"type": "feedback",
"attributes": {
"rating": "2.5",
"comment": "Awesome"
},
"relationships": {
"event": {
"data": {
"type": "event",
"id": "770"
}
},
"user": {
"data": {
"type": "user",
"id": "7625"
}
}
}
},
"included": [
{
"type": "user",
"id": "7625",
"attributes": {}
},
{
"type": "event",
"id": "770",
"attributes": {}
}
]
}
becuase in this post request Included was added
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.
Explain please
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. Got it. But won't it effect past modules
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.
nope I have checked it isn't affecting any modules it may have broken some code before but everything is working fine
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsFragment.kt
Outdated
Show resolved
Hide resolved
@iamareebjamal updated |
Fixes #1633
Changes: Added option to submit feedback
Screenshots for the change: