codestates / codestates/aneun-dongne

[Dev-Log] 1209/손승이

Open
#109 0 comments 0 reactions 0 assignees View on GitHub
Dev Log
Dominant language
JavaScript
Stars
6
Forks
7
PR merge metrics
No merged PRs in 30d

Description

> ### 오늘은 어떻게 프로젝트에 기여했나요?
> 댓글목록, like 목록, 홈 화면, 포스트 세부정보 화면을 조건별로 나눠서 모든 CRUD 구현
> ### 오늘의 프로젝트에서 힘든 점은 무엇인가요?
> 시퀄라이즈에서 where: {}와 sequelize.where 방식을 동시에 쓰고 싶은데 방법을 찾지 못했다
> ```
> where: sequelize.where(
> sequelize.fn(
> "ST_Distance",
> sequelize.fn("POINT", sequelize.col("post_wtmx"), sequelize.col("post_wtmy")),
> sequelize.fn("POINT", clientwtmx, clientwtmy)
> ),
> { [Sequelize.Op.lte]: radius }
> )
> ```
> 위는 좌표가 주어진 두 점 사이의 반경을 구하고 특정 반경 이하만 가져오도록 코드
> ```
> where: {
> [Sequelize.Op.and]: [
> { post_tags: { [Sequelize.Op.substring]: `${tag}` } },
> { post_title: { [Sequelize.Op.substring]: `${searchWord}` } },
> ],
> },
> ```
> 이것은 검색한 tag가 메인 해시태그 둘 또는 하나에 포함되고 동시에 포스트제목에 검색어가 포함되는 데이터만 가져오는 코드
> 위 둘을 동시에 [Sequelize.Op.and](AND method)로 묶어서 쿼리를 날리고 싶었는데 실패
> ### 내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?
> * [ ] 마이페이지 서버 부분 구현
> * [ ] Visited 서버 부분 구현

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the server code for the user's My Page and Visited features, then review the existing Sequelize query patterns; done means those server portions are implemented and the combined radius and search conditions work as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.