-
Notifications
You must be signed in to change notification settings - Fork 1
[fix/#38] fix fuking shjit #40
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
3a5090c
471de42
32cf0c3
478949d
f65add3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,5 +24,5 @@ data class MentorItemDto( | |
| val major: String, | ||
| val jobSeeking: Boolean, | ||
| val employed: Boolean, | ||
| val academicStatus: String | ||
| val academicStatus: String? = null | ||
|
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. 🧩 Analysis chainVerify backend API compatibility and null handling. Making
Run the following script to check how 🏁 Script executed: #!/bin/bash
# Check MentorItemDto usage and academicStatus handling
echo "=== Searching for MentorItemDto usage ==="
rg -n "MentorItemDto" --type=kt -C 3
echo -e "\n=== Searching for academicStatus field access ==="
rg -n "\.academicStatus" --type=kt -C 2Length of output: 146 🏁 Script executed: #!/bin/bash
# Check MentorItemDto usage and academicStatus handling using corrected syntax
echo "=== Searching for MentorItemDto usage ==="
rg -n "MentorItemDto" -C 3
echo -e "\n=== Searching for academicStatus field access ==="
rg -n "\.academicStatus" -C 2
echo -e "\n=== Searching for SearchResponseDto and related DTOs ==="
rg -n "SearchResponseDto\|MentorItemDto" -C 2Length of output: 6100 🏁 Script executed: #!/bin/bash
# Check the function implementations that consume academicStatus
echo "=== Searching for buildStatusText function definition ==="
rg -n "fun buildStatusText" -C 5
echo -e "\n=== Searching for getAcademicStatusText function definition ==="
rg -n "fun getAcademicStatusText" -C 5
echo -e "\n=== Checking MentorItemDto data class full definition ==="
rg -n "data class MentorItemDto" -A 15Length of output: 6221 Fix null handling in function consumers before release. The change to make
Update function signatures to accept 🤖 Prompt for AI Agents |
||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ import com.hsLink.hslink.presentation.mypage.screen.career.CareerEditRoute | |
| import kotlinx.serialization.Serializable | ||
|
|
||
| // ← careerId 파라미터 추가 | ||
| fun NavController.navigateToCareerEdit(careerId: Long, navOptions: NavOptions? = null) { | ||
| fun NavController.navigateToCareerEdit(careerId: Int, navOptions: NavOptions? = null) { | ||
| navigate(CareerEdit(careerId = careerId), navOptions) | ||
|
Comment on lines
+13
to
14
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. 🧩 Analysis chainIncomplete type migration creates inconsistency. The navigation layer now uses Consider completing the migration by updating Also applies to: 23-29, 35-35 🏁 Script executed: #!/bin/bash
# Find CareerEditRoute and related components that might need Int migration
rg -nP 'CareerEditRoute|careerId.*Long' --type=kotlin -C5Length of output: 14660 Based on the script output from earlier, I can see line 35 shows: Let me search for the full CareerEdit definition: Type boundary change creates clarity issue, but verify design intent. The migration changed navigation to use Before enforcing the suggested refactor to use
🏁 Script executed: #!/bin/bash
# Find CareerDto definition to check id field type
fd -e '.kt' | xargs grep -l 'data class CareerDto\|class CareerDto'Length of output: 71 🏁 Script executed: #!/bin/bash
# Find CareerDto definition
rg -nP 'data class CareerDto|class CareerDto' --type=kotlin -A10 | head -50Length of output: 1023 🏁 Script executed: #!/bin/bash
# Find CareerEdit serializable data class
rg -nP '@Serializable.*\ndata class CareerEdit|@Serializable\s+data class CareerEdit' --type=kotlin -A5Length of output: 0 🏁 Script executed: #!/bin/bash
# Search for CareerEdit more broadly
rg -nP 'data class CareerEdit|CareerEdit\s*\(' --type=kotlin -B2 -A2Length of output: 3400 Complete the type migration: update CareerEditRoute to accept Int instead of Long. The migration changed navigation to Separately, verify that the downstream ViewModel/Repository layer can accept 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
|
|
@@ -20,18 +20,16 @@ fun NavGraphBuilder.careerNavGraph( | |
| ) { | ||
| composable<CareerEdit> { backStackEntry -> | ||
| val careerEdit = backStackEntry.arguments?.let { | ||
| // ← careerId 추출 | ||
| CareerEdit(careerId = it.getLong("careerId")) | ||
| } ?: CareerEdit(careerId = 0L) | ||
| CareerEdit(careerId = it.getInt("careerId")) // ← getLong → getInt 변경! | ||
| } ?: CareerEdit(careerId = 0) // ← 0L → 0 변경! | ||
|
|
||
| CareerEditRoute( | ||
| paddingValues = padding, | ||
| navController = navController, | ||
| careerId = careerEdit.careerId // ← careerId 전달 | ||
| careerId = careerEdit.careerId.toLong() // ← CareerEditRoute가 Long을 받으면 여기서 변환 | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| // ← data object에서 data class로 변경 | ||
| @Serializable | ||
| data class CareerEdit(val careerId: Long) : Route | ||
| data class CareerEdit(val careerId: Int) : Route | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,16 +59,16 @@ fun LinksScreen( | |
| .weight(1f) | ||
| .fillMaxWidth() | ||
| ) { | ||
| if (linkList.isNotEmpty()) { | ||
| LazyColumn( | ||
| modifier = Modifier.fillMaxSize(), | ||
| verticalArrangement = Arrangement.spacedBy(12.dp) | ||
| ) { | ||
| items(linkList) { link -> | ||
| LinkItem(link) | ||
| } | ||
| } | ||
| } | ||
| // if (linkList.isNotEmpty()) { | ||
| // LazyColumn( | ||
| // modifier = Modifier.fillMaxSize(), | ||
| // verticalArrangement = Arrangement.spacedBy(12.dp) | ||
| // ) { | ||
| // items(linkList) { link -> | ||
| // LinkItem(link) | ||
| // } | ||
| // } | ||
| // } | ||
|
Comment on lines
+62
to
+71
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. 🧩 Analysis chainCritical: Link display functionality is completely disabled. Commenting out the link list rendering removes essential functionality from the onboarding flow. Users can still add links via the button below (line 103-107), but they cannot view what they've added. This creates a confusing and broken user experience. Based on the PR description mentioning HTTP 500 errors, this appears to be a temporary workaround rather than a proper fix. However:
If the underlying issue is related to API errors when fetching/displaying links, please verify the actual error and implement proper error handling: 🏁 Script executed: #!/bin/bash
# Search for LinkItemEntity usage and API calls that might be causing HTTP 500 errors
rg -n "LinkItemEntity" --type=kotlin -C3
# Search for related API/network calls in the onboarding flow
rg -n "linkList|getLlinks|fetchLinks" --type=kotlin -C3Length of output: 15859 Critical: Link display functionality is completely disabled. Commenting out the link list rendering removes essential functionality from the onboarding flow. Users can still add links via the button below (lines 103-107), but they cannot view what they've added. This creates a confusing and broken user experience. Based on the PR description mentioning HTTP 500 errors, this appears to be a temporary workaround. However:
The underlying infrastructure is intact (the 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| Box( | ||
|
|
||
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.
🧩 Analysis chain
Verify API contract supports Int range for career IDs.
The change from
LongtoIntcould cause issues if the backend returns IDs exceedingInt.MAX_VALUE(2,147,483,647). Ensure the API specification guarantees career IDs will remain within the Int range.🏁 Script executed:
Length of output: 8992
Update careerId type from Long to Int across repository, service, and view model layers.
The change to use
IntinCareerResponse.ktis incompletely migrated. Multiple layers still expectLong:getCareer(careerId: Long)andupdateCareer(careerId: Long, ...)@Path("careerId") careerId: LongLongupdateCareer(careerId: Long)andloadCareer(careerId: Long)careerId: Long?Workarounds like
.toLong()conversions in navigation don't address the underlying type inconsistency. Update all method signatures and parameter types to useIntconsistently.🤖 Prompt for AI Agents