GithubHelp home page GithubHelp logo

bangjaeyoung / gyul-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nakjun12/gyul_box

0.0 0.0 0.0 1.69 MB

Jeju Island housing search, community service

Home Page: https://team-poject.vercel.app

JavaScript 0.08% Java 66.48% TypeScript 24.02% SCSS 9.34% HTML 0.08%

gyul-box's People

Contributors

bangjaeyoung avatar codemodel6 avatar gyuddi avatar jnjongjeon avatar nakjun12 avatar

gyul-box's Issues

각 도메인의 테스트 코드를 작성한다.

목적

각 도메인의 테스트 코드를 작성한다.
Persistence, Business, Presentation Layer

작업 상세 내용

  • Area
  • HouseInfo
  • Message
  • MessageRoom
  • Post
  • PostComment
  • PostLike
  • Review
  • ReviewLike
  • User

참고 사항

QueryDSL에서의 단위 테스트 작성

초기 API 통신 테스트를 위한 data.sql 파일을 추가한다.

목적

API 통신 테스트를 위한 초기 데이터 파일을 추가한다.

작업 상세 내용

  • 초기 데이터 삽입을 위한 data.sql을 작성

참고 사항

  • data.sql 파일에 쿼리문 작성 후 애플리케이션 실행 시, 에러 발생 'dataSourceScriptDatabaseInitializer'
    -> 통합되지 않은 yml 파일을 사용하는 걸로 임시 해결

  • data.sql 파일 작성 후에도 h2 db에 데이터 삽입 안됨
    -> defer-datasource-initialization: true, sql.init.mode: always 추가로 해결
    -> IntelliJ - Edit Configuration에서 Active Profiles 설정으로 해결

  • 임베디드 엔티티는 데이터를 어떻게 삽입하나?
    -> 임베디드 엔티티를 참조하는 엔티티에서 임베디드 엔티티의 필드들을 따로 삽입해서 해결

Enum 클래스인 MessageRoomStatus 필드 값을 검증하는 로직을 작성한다.

목적

Enum 클래스인 MessageRoomStatus 필드 값을 검증하는 로직을 작성한다.

작업 상세 내용

  • MessageRoom 엔티티의 messageRoomStatus 필드의 기본값을 'UNCHECK'로 설정한다.
  • MessageRoomStatus Enum 클래스에 있는 필드 값이 아닌 다른 값이 들어갈 경우, 에러를 발생하는 로직을 작성한다.

참고 사항

Enum 타입의 클래스에서 값 검증 방법

단일 게시글 조회 기능에서 조회 수 값 불일치 문제를 수정한다.

목적

단일 게시글 조회 시, 조회 수가 1씩 증가하는 로직에서 DB에 응답 데이터 간의 값 불일치 문제를 해결한다.

작업 상세 내용

  • 문제 발생 지점을 찾고 구글링을 시도한다.
  • 단일 게시글 조회 로직을 수정한다.

참고 사항

현재 조회 수 1 증가 로직 이후, entityManger.refresh(post)를 통해 임시 해결
적절한 방법인지 확인 후, 개선 필요

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.