Skip to content

Commit 1dae5e5

Browse files
yhk1038FRESH-TUNAjune20516DONGWON KIMPLUX-KR
authored
release 202005-1 Mobile+Office Redesign (#48)
* 기능: 배포를 위한 유용한 스크립트 작성 * 기능: .dockerignore 작성 * 기능: .envrc 작성 * 기능: docker 관련된 사항들 .gitignore에 추가 * 기능: 유용한 도커 명령어들 정리 * 기타: docker readme.md 작성 * 기타: docker readme.md 개발환경 구축 시나리오 작성 * 기능: 프로젝트 진입시 docker-sync가 start 되도록 추가 * 기능: 개발용 Dockerfile 작성 * 기능: docker-sync, docker-compose 로직 수정 * 기능: 개발용 Dockerfile 버그 수정 * 기능: 이미지와 컨테이너의 이름을 구분 * 기능: prod_image_build 작성 * 기능: 배포 가이드 작성 * 기능: sprocket 버전 다운그레이드 * 기능: docker-sync 볼륨을 활용할수 있도록 수정 * 기능: README.md/ 배포 프로세스 보강 * 문서: docker/readme.md 인트로 추가 * 문서: 오타 수정 * 기능: git 유니코드 적용 * 문서: docker/README.md 가독성 있도록 수정 * 문서: Docker/ readme.md, 배포 스크립트 관련한 사항 작성 * 기능: 배포용 Dockerfile 수정 * 수정: 최신 이미지 사용 항목 추가 * 기능: docker-compose 를 편하게 쓸수 있도록 수정 * schema.rb 캐시 삭제 * Update/ haravan settlement bot * Update test code * option에서 할인 정보를 가지도록 모델 변경 * Update haravan searcher * haravan/ 정산 브랜드 개별 페이지 추가 * haravan/ 브랜드별 페이지 인증 수단 추가 * 기능: hello 메소드를 찾을수 없다는 버그 수정 * product_option 테이블에 active 컬럼 추가 및 마이그레이션파일 리네임 * 변경된 product option의 model method 반영 * migration 파일 정리 * 리펙토링: product_item_row, product_item_container 모델 수정 product_item_row -> product_collection_element 로 변경 product_item_container -> product_collection 로 변경 * 리펙토링: product_item_row, container 변경으로 인한 고미사 로직 수정 * 리펙토링: product_item_row, container 변경으로 인한 폴더이름 변경 * 리펙토링: product_item_row, container 마이그레이션 * 리펙토링: class_name을 추가하여 연계된 데이터들을 편리하게 접근하도록 구현 * 리펙토링: db 리펙토링으로 인한 고미사 로직 수정 * 기능: .envrc 작동 과정 수정 * 기능: docker-compose 자동화 기능 보강 * 기능: Dockerfile 빌드 단계 간소화 * 기능: 배포를 위한 스크립트 수정 * 문서: docker/readme.md 수정 * 기능: .envrc -> .gitignore * 기능: .dockerignore 수정 * 문서: docker/README.md 오타 수정 * 기능: 이미지 빌드시 자동으오 최신의 base 이미지를 반영하도록 구현 * 문서: docker/README.md 설명 보강 * 기능: .envrc 버그 수정 및 새로운 기능 추가 * 문서: docker/README.md에 새로운 내용 추가 * product_item_barcode 생성, option과 연결 * Update adjustment.rb * product_item_barcode의 option 에 classname 작성 * Update product_option.rb * Update .gitignore * 리펙토링: product_item_product_options 폴더 이름 변경 * 기능: 모델이름 변경 * 리펙토링: fixtures 변경 * 리펙토링: db 테이블 이름 변경 product_item_product_options -> product_option_bridges * 리펙토링: product_item_product_options -> product_option_bridges 로의 변경으로 인한 모델변경 * 기능: ProductOptionBridge, 개체 무결성 제약조건 삭제 * 기능: product_item, product_collection, has_one에서 has_many로 수정 * 기능: ProductItemBarcode, belongs_to, has_many 변경 product_item -> product_option_bridge * 기능: ProductOption, connectables 메소드 구현 * 기능: product_option, connectables=, setter 메소드 생성 * 기능: ProductCollection 제약조건 추가 * 기능: ProductOptionBridge, has_many를 belongs_to로 변경 * 기능: bridges(connectables)만 이용해서 사용 * 기능: platform-api, models 자잘한 수정 * 기능: 재고 카운터 스키마 추가 - Adjustment 테이블에 적용수량 / amount:integer / (null: false, default: 0) 컬럼 추가 - Adjustment 테이블에 누적수량 / result_quantity:integer / (null: false, default: 0) 컬럼 추가 - ProductItem 테이블에 카운터캐시 전용 barcodes_count:integer | alive_barcodes_count:integer / (null: false, default: 0) 컬럼 추가 * 기능: ProductItem 테이블에 active:boolean 컬럼 추가 * cart item에 product Option 직접 연결 마이그레이션 추가 * 기능: Adjustment 테이블에 memo:text 컬럼 추가 * cart item의 option default 1로 수정 * 기능: .envrc 버그 수정 * 기능: asset_compile 진행과정 수정 * 기능: .envrc dev_start 버그 수정 * ProductCollectionList Mysql View Table 적용 * cart item 과 barcode 매개 테이블 생성 * 기능: .envrc 및 docker/readme.md 작성 * 기능: docker-compose 작성 * 기능: canary 배포를 위한 docker-compose 프로토타입 개발 * 기능: canary 배포를 위한 nginx.conf.template 작성 * 기능: ViewTableBuilder 분리 * 기능: nginx.conf.template 작성중 * cart item 과 barcode 상호관계 작성 * option count 의 default 값 1->0으로 변경 * item barcode 의 expired at 변경 마이그레이션 누락 수정 * 기능: Banner model & Base, Category, Home type 생성 * 기능: 배너에 이미지 필드 추가 * 기능: 상품 기본 옵션 설정 기능 추가 * 문서: docker/README.md 수정 * 문서: dev_stop 내용 추가 * 기능: docker 개발환경 개선을 위한 업데이트 * 기능: 개발용 Dockerfile 삭제 * 기능: mac_init.sh, 이미지가 아닌 컨테이너를 활용하도록 수정 * 기능: mac_init, echo 워딩 수정 * 기능: mac_init, docker-compose 버그 수정 * 기능: feat/dockerize_v3 * 기능: feat/dockerize_v3 잔버그 수정 * 기능: dev_start 명령어 버그 수정 * 기능: .bashrc 작성 및 배포용 Dockerfile에다 추가 * feat : polymorphic Banner#bannered * schema : Add table CartItemCancelledTag * 기능: Gomisa/ companies, crud 프로토타입 구현 * 기능: ProductItemGroup 뷰 작성 * 기능: Brand 관련 뷰, 컨트롤러 작성 * 기능: ProductItemGroupService 작성 * 기능: routes.rb, companies, brands, product_item_groups 추가 * 기능: ProductItemGroup 컨트롤러 작성 * 기능: ProductItemGroup/ index 개발 * 기능: ProductAttribute/ _product_attribute jbuilder 구현 * 기능: ProductItemGroup, jbuilder 프로토타입 구현 * 기능: Company의 브랜드 갯수, Brand의 ProductItems 갯수 표시 구현 * 기능: ProductItemGroup 컨트롤러 작성 * 기능: product_item_groups, product_collections 라우팅 추가 * 기능: ProductCollection, jbuilder 프로토타입 작성 * 기능: Gomisa/ ProductCollection 모델에 필요한 메소드 추가 * 기능: Gomisa/ ProductCollectionController 작성 * 기능: ProductCollection/ show action 프로토타입 구현 * 기능: Gomisa/ currency_format, unit_format 임시로 삭제 * 기능: Gomisa/ ProductCollection, show action에 item 내용 보강 * 기능: Gomisa/ ProductCollection, show 로직 잔버그 수정 * 기능: Gomisa/ ProductCollection, nested_url을 위한 수정 * 기능: Gomisa/ ProductCollection, create 구현 * 기눙: Gomisa/ ProductCollection update, delete 기능 구현 * 기능: Gomisa/ ProductCollection/list 컨트롤러 작성 * 기능: Gomisa/ ProductCollection, common_controller 작성 * 기능: Gomisa/ ProductCollection, controller 구현 * 기능: Gomisa/ ProductCollectionElement 모델 수정 * 기능: Gomisa/ ProductCollection, index.view 작성 * 기능: Gomisa/ adjustments, create, delete 프로토타입 구현 * 기능: Gomisa/ 기존에 작성했던 고미사 로직 수정 * product_category에 validates 설정 * 기능: Gomisa/ api 개선 및 잔버그 수정 작업 * 마이그레이션 파일 위치 정리 * 기타 분류하기 애매한 마이그레이션은 제외. * 분류 가능한 마이그레이션은 그 모델에 따라 폴더 분류 * 기능: GC-48 #comment 흐음 댓글이 달리나� * 기능: GC-39 commit history test * 기능: GC-48 #comment 댓글아 달려라 * 기능: GC-48 #close close-test * 기능: Gomisa/ ProductCollection, show response 수정 * 기능: DO-9 #done done! * 기능: GC-38 #in-progress workflow * 기능: GC-38 #in_progress in_progress move test * 기능: GC-38 #comment hahahahha #to_do move test * 기능: Gomisa/ _table_entries.json response 수정 * 기능: Gomisa/ update 로직 수정 * 기능: Gomisa/ update 응답코드 업데이트 * Fix: ship_infos 테이블의 utf8을 utf8mb4로 포맷 확장 * Chore: database.yml의 collate 속성 수정 * 기능: Gomisa/ reference to country 추가 * 기능: Gomisa/ set_app_locale 이동, set_country_code :before_action 구현 * 기능: Gomisa/ NationRecord 모델 적용 * 기능: Gomisa/ namespace 제거 * 기능: Gomisa/ ProductItemGroup show response 개선 * 기능: Gomisa/ Country 테이블에 short_name 컬럼 추가 * 기능: Gomisa/ item 저장시 항상 Country 적용 * 기능: Gomisa/ Country 추가 예제 작성 * Chore : utf8mb4를 적용하는 루비코드를 쿼리로 변경 * 기능: Gomisa/ product_item_group, show response 복원 * 기능: Gomisa/ ProductItemGroup, show request 변경 * 기능: Gomisa/ ProductItemGroup show response 변경 * 기능: Gomisa/ nation이 params로 주어지지 않으면 전체 데이터를 대상으로 하도록 설정 * 기능: Gomisa/ ProductItem, 회사 이름, 브랜드 이름으로 검색기능 구현 * 기능: Gomisa/ 출고시 adjustment.memo 제거 * 기능: Gomisa/ Company 필터링시 국가 적용 비활성화 * 기능: Gomisa/ product_item 리스트, 쿼리 변경 * 기능: Gomisa/ stock 모델 메소드 제거, 기존의 출고량 계산을 위한 로직 수정 * 기능: API/ Company에서 country 컬럼 제거 * 기능: Gomisa/ ProductItem, stock 프로퍼티 제거 및, quantity 이름 변경 * RE: 코드리뷰 하였습니다. * 기능: Migration, Channel 테이블 추가 * 기능: channel 모델 추가 * 기능: 국가 코드 적용 완료 * 적용 모델 : `Brand, Adjustment, ProductItem, ProductCollection, ProductItemGroup` * 마이그레이션 작업 : `AlIsWell::MigrateForAdaptingCountrySystem.call` * migration file 정리, barcode 에 leaved_at 추가 * 기능: channel.rb, order_info.rb 작성하기 * 기능: 같은 이름의 Channel이 생성되지 않도록 막음 * 기능: OrderInfo 모델, 필요없는 기능 삭제 * 기능: 국가귀속모델 목록에 Product 모델 추가 (상품페이지) * 기능: 국가귀속모델 목록에 Category 모델 추가 * 기능: 국가귀속모델에 대한 스토어 미러링 적용 * adjustment가 order과 연결되도록 변경 * order info에 nation record 적용 * 배너에 국가 구분 적용, 국가 마이그레이션 null true로 변경 * 수정: country left_join 중첩 문제 해결 * country 적용 마이그레이션 메소드에 banner 추가 * 수정: Channel 모델 역시 Country 에 의존성을 가집니다. (#36) * 기능: 국가귀속모델 리스트에 Channel 모델 추가 * 수정: 각 Country 객체가 전역 스코프에서 싱글톤 처럼 동작하도록 수정 * 수정: API 목적에 맞게 전역 country_code가 ENV가 아닌 동적으로 적용되도록 수정 및 기본값 적용 * 수정: 채널명이 국가구분 내에서만 유일한 값을 가지도록 수정 * 기능: ProductOption 에 channel_code 컬럼 추가 및 ChannelRecordable 적용 * product title 타입 변경 * 기능: PaperTrail 을 활용한 모델 버저닝 추가 (#37) * 기능 : paper trail을 적용하기 위한 migration * 기능: HistoricalRecordable 전역 모델에 적용 Co-authored-by: Bran <40688044+june20516@users.noreply.github.com> * 기능: 창고로부터 가격 변동 시 유관 모델에 전파 및 저장 (#38) * 기능: 재고 및 판매 가격을 캐싱할 수 있는 필드 및 마이그레이션 추가 * 기능: 가격 컬럼 저장시 유관 레코드에 전파 하도록 설정 * 기능: 타임머신 기능 추가 * 기능: 타임머신 도입 이전의 최신 상태를 기준으로 가격 컬럼 데이터를 마이그레이션 * 기능: 모델의 귀속 국가를 컨텍스트로 구성하는 기능 추가 및 전체국가에 대한 스코프 추가 * 수정: 국가코드 변수를 상속받지 않고 모듈이 계속 가지고 있도록 변경 * 수정: 국가귀속모델에서 기본국가 지정 방법 수정 * 수정: channel_id 가 0인 경우 기본 채널을 세팅하지 못하는 문제 수정 * 기능: 기존 Country 테이블에 iso_code 칼럼 추가 * 기능 : national record의 migration 적용을 위한 data migrate 보완 * 수정: 가격캐싱 마이그레이션 파일 이동 & 세트상품 가격변동 전파 누락부분 수정 * 핫픽스: 취소 태그 도입 이전의 주문에 대한 취소태그 소급 적용 (#41) * release 202003-4 adios tuna (#39) * Add column depth to categories * Haravan API/ 정산 페이지 1차 완료 * haravan/ console 구문 삭제 * haravan/ puts 를 Rails.logger.debug 로 수정 * 기능: 개발환경 실행을 위해 필요한 파일 작성 * 기능: 배포환경 실행을 위한 파일 작성 * 기능: 배포용 이미지 Dockerfile 작성 * 기능: logrotate 설정파일 작성 * 기능: 배포용 nginx.conf 작성 * 기능: 배포용 이미지 Dockerfile 수정 * 기능: 배포를 위한 유용한 스크립트 작성 * 기능: .dockerignore 작성 * 기능: .envrc 작성 * 기능: docker 관련된 사항들 .gitignore에 추가 * 기능: 유용한 도커 명령어들 정리 * 기타: docker readme.md 작성 * 기타: docker readme.md 개발환경 구축 시나리오 작성 * 기능: 프로젝트 진입시 docker-sync가 start 되도록 추가 * 기능: 개발용 Dockerfile 작성 * 기능: docker-sync, docker-compose 로직 수정 * 기능: 개발용 Dockerfile 버그 수정 * 기능: 이미지와 컨테이너의 이름을 구분 * 기능: prod_image_build 작성 * 기능: 배포 가이드 작성 * 기능: sprocket 버전 다운그레이드 * 기능: docker-sync 볼륨을 활용할수 있도록 수정 * 기능: README.md/ 배포 프로세스 보강 * 문서: docker/readme.md 인트로 추가 * 문서: 오타 수정 * 기능: git 유니코드 적용 * 문서: docker/README.md 가독성 있도록 수정 * 문서: Docker/ readme.md, 배포 스크립트 관련한 사항 작성 * 기능: 배포용 Dockerfile 수정 * 수정: 최신 이미지 사용 항목 추가 * 기능: docker-compose 를 편하게 쓸수 있도록 수정 * schema.rb 캐시 삭제 * Update/ haravan settlement bot * Update test code * option에서 할인 정보를 가지도록 모델 변경 * Update haravan searcher * haravan/ 정산 브랜드 개별 페이지 추가 * haravan/ 브랜드별 페이지 인증 수단 추가 * 기능: hello 메소드를 찾을수 없다는 버그 수정 * product_option 테이블에 active 컬럼 추가 및 마이그레이션파일 리네임 * 변경된 product option의 model method 반영 * migration 파일 정리 * 리펙토링: product_item_row, product_item_container 모델 수정 product_item_row -> product_collection_element 로 변경 product_item_container -> product_collection 로 변경 * 리펙토링: product_item_row, container 변경으로 인한 고미사 로직 수정 * 리펙토링: product_item_row, container 변경으로 인한 폴더이름 변경 * 리펙토링: product_item_row, container 마이그레이션 * 리펙토링: class_name을 추가하여 연계된 데이터들을 편리하게 접근하도록 구현 * 리펙토링: db 리펙토링으로 인한 고미사 로직 수정 * 기능: .envrc 작동 과정 수정 * 기능: docker-compose 자동화 기능 보강 * 기능: Dockerfile 빌드 단계 간소화 * 기능: 배포를 위한 스크립트 수정 * 문서: docker/readme.md 수정 * 기능: .envrc -> .gitignore * 기능: .dockerignore 수정 * 문서: docker/README.md 오타 수정 * 기능: 이미지 빌드시 자동으오 최신의 base 이미지를 반영하도록 구현 * 문서: docker/README.md 설명 보강 * 기능: .envrc 버그 수정 및 새로운 기능 추가 * 문서: docker/README.md에 새로운 내용 추가 * product_item_barcode 생성, option과 연결 * Update adjustment.rb * product_item_barcode의 option 에 classname 작성 * Update product_option.rb * Update .gitignore * 리펙토링: product_item_product_options 폴더 이름 변경 * 기능: 모델이름 변경 * 리펙토링: fixtures 변경 * 리펙토링: db 테이블 이름 변경 product_item_product_options -> product_option_bridges * 리펙토링: product_item_product_options -> product_option_bridges 로의 변경으로 인한 모델변경 * 기능: ProductOptionBridge, 개체 무결성 제약조건 삭제 * 기능: product_item, product_collection, has_one에서 has_many로 수정 * 기능: ProductItemBarcode, belongs_to, has_many 변경 product_item -> product_option_bridge * 기능: ProductOption, connectables 메소드 구현 * 기능: product_option, connectables=, setter 메소드 생성 * 기능: ProductCollection 제약조건 추가 * 기능: ProductOptionBridge, has_many를 belongs_to로 변경 * 기능: bridges(connectables)만 이용해서 사용 * 기능: platform-api, models 자잘한 수정 * 기능: 재고 카운터 스키마 추가 - Adjustment 테이블에 적용수량 / amount:integer / (null: false, default: 0) 컬럼 추가 - Adjustment 테이블에 누적수량 / result_quantity:integer / (null: false, default: 0) 컬럼 추가 - ProductItem 테이블에 카운터캐시 전용 barcodes_count:integer | alive_barcodes_count:integer / (null: false, default: 0) 컬럼 추가 * 기능: ProductItem 테이블에 active:boolean 컬럼 추가 * cart item에 product Option 직접 연결 마이그레이션 추가 * 기능: Adjustment 테이블에 memo:text 컬럼 추가 * cart item의 option default 1로 수정 * 기능: .envrc 버그 수정 * 기능: asset_compile 진행과정 수정 * 기능: .envrc dev_start 버그 수정 * ProductCollectionList Mysql View Table 적용 * cart item 과 barcode 매개 테이블 생성 * 기능: .envrc 및 docker/readme.md 작성 * 기능: docker-compose 작성 * 기능: canary 배포를 위한 docker-compose 프로토타입 개발 * 기능: canary 배포를 위한 nginx.conf.template 작성 * 기능: ViewTableBuilder 분리 * 기능: nginx.conf.template 작성중 * cart item 과 barcode 상호관계 작성 * option count 의 default 값 1->0으로 변경 * item barcode 의 expired at 변경 마이그레이션 누락 수정 * 기능: Banner model & Base, Category, Home type 생성 * 기능: 배너에 이미지 필드 추가 * 기능: 상품 기본 옵션 설정 기능 추가 * 문서: docker/README.md 수정 * 문서: dev_stop 내용 추가 * 기능: docker 개발환경 개선을 위한 업데이트 * 기능: 개발용 Dockerfile 삭제 * 기능: mac_init.sh, 이미지가 아닌 컨테이너를 활용하도록 수정 * 기능: mac_init, echo 워딩 수정 * 기능: mac_init, docker-compose 버그 수정 * 기능: feat/dockerize_v3 * 기능: feat/dockerize_v3 잔버그 수정 * 기능: dev_start 명령어 버그 수정 * 기능: .bashrc 작성 및 배포용 Dockerfile에다 추가 * feat : polymorphic Banner#bannered * schema : Add table CartItemCancelledTag * 기능: Gomisa/ companies, crud 프로토타입 구현 * 기능: ProductItemGroup 뷰 작성 * 기능: Brand 관련 뷰, 컨트롤러 작성 * 기능: ProductItemGroupService 작성 * 기능: routes.rb, companies, brands, product_item_groups 추가 * 기능: ProductItemGroup 컨트롤러 작성 * 기능: ProductItemGroup/ index 개발 * 기능: ProductAttribute/ _product_attribute jbuilder 구현 * 기능: ProductItemGroup, jbuilder 프로토타입 구현 * 기능: Company의 브랜드 갯수, Brand의 ProductItems 갯수 표시 구현 * 기능: ProductItemGroup 컨트롤러 작성 * 기능: product_item_groups, product_collections 라우팅 추가 * 기능: ProductCollection, jbuilder 프로토타입 작성 * 기능: Gomisa/ ProductCollection 모델에 필요한 메소드 추가 * 기능: Gomisa/ ProductCollectionController 작성 * 기능: ProductCollection/ show action 프로토타입 구현 * 기능: Gomisa/ currency_format, unit_format 임시로 삭제 * 기능: Gomisa/ ProductCollection, show action에 item 내용 보강 * 기능: Gomisa/ ProductCollection, show 로직 잔버그 수정 * 기능: Gomisa/ ProductCollection, nested_url을 위한 수정 * 기능: Gomisa/ ProductCollection, create 구현 * 기눙: Gomisa/ ProductCollection update, delete 기능 구현 * 기능: Gomisa/ ProductCollection/list 컨트롤러 작성 * 기능: Gomisa/ ProductCollection, common_controller 작성 * 기능: Gomisa/ ProductCollection, controller 구현 * 기능: Gomisa/ ProductCollectionElement 모델 수정 * 기능: Gomisa/ ProductCollection, index.view 작성 * 기능: Gomisa/ adjustments, create, delete 프로토타입 구현 * 기능: Gomisa/ 기존에 작성했던 고미사 로직 수정 * product_category에 validates 설정 * 기능: Gomisa/ api 개선 및 잔버그 수정 작업 * 마이그레이션 파일 위치 정리 * 기타 분류하기 애매한 마이그레이션은 제외. * 분류 가능한 마이그레이션은 그 모델에 따라 폴더 분류 * 기능: GC-48 #comment 흐음 댓글이 달리나� * 기능: GC-39 commit history test * 기능: GC-48 #comment 댓글아 달려라 * 기능: GC-48 #close close-test * 기능: Gomisa/ ProductCollection, show response 수정 * 기능: DO-9 #done done! * 기능: GC-38 #in-progress workflow * 기능: GC-38 #in_progress in_progress move test * 기능: GC-38 #comment hahahahha #to_do move test * 기능: Gomisa/ _table_entries.json response 수정 * 기능: Gomisa/ update 로직 수정 * 기능: Gomisa/ update 응답코드 업데이트 * Fix: ship_infos 테이블의 utf8을 utf8mb4로 포맷 확장 * Chore: database.yml의 collate 속성 수정 * 기능: Gomisa/ reference to country 추가 * 기능: Gomisa/ set_app_locale 이동, set_country_code :before_action 구현 * 기능: Gomisa/ NationRecord 모델 적용 * 기능: Gomisa/ namespace 제거 * 기능: Gomisa/ ProductItemGroup show response 개선 * 기능: Gomisa/ Country 테이블에 short_name 컬럼 추가 * 기능: Gomisa/ item 저장시 항상 Country 적용 * 기능: Gomisa/ Country 추가 예제 작성 * Chore : utf8mb4를 적용하는 루비코드를 쿼리로 변경 * 기능: Gomisa/ product_item_group, show response 복원 * 기능: Gomisa/ ProductItemGroup, show request 변경 * 기능: Gomisa/ ProductItemGroup show response 변경 * 기능: Gomisa/ nation이 params로 주어지지 않으면 전체 데이터를 대상으로 하도록 설정 * 기능: Gomisa/ ProductItem, 회사 이름, 브랜드 이름으로 검색기능 구현 * 기능: Gomisa/ 출고시 adjustment.memo 제거 * 기능: Gomisa/ Company 필터링시 국가 적용 비활성화 * 기능: Gomisa/ product_item 리스트, 쿼리 변경 * 기능: Gomisa/ stock 모델 메소드 제거, 기존의 출고량 계산을 위한 로직 수정 * 기능: API/ Company에서 country 컬럼 제거 * 기능: Gomisa/ ProductItem, stock 프로퍼티 제거 및, quantity 이름 변경 * RE: 코드리뷰 하였습니다. * 기능: Migration, Channel 테이블 추가 * 기능: channel 모델 추가 * 기능: 국가 코드 적용 완료 * 적용 모델 : `Brand, Adjustment, ProductItem, ProductCollection, ProductItemGroup` * 마이그레이션 작업 : `AlIsWell::MigrateForAdaptingCountrySystem.call` * migration file 정리, barcode 에 leaved_at 추가 * 기능: channel.rb, order_info.rb 작성하기 * 기능: 같은 이름의 Channel이 생성되지 않도록 막음 * 기능: OrderInfo 모델, 필요없는 기능 삭제 * 기능: 국가귀속모델 목록에 Product 모델 추가 (상품페이지) * 기능: 국가귀속모델 목록에 Category 모델 추가 * 기능: 국가귀속모델에 대한 스토어 미러링 적용 * adjustment가 order과 연결되도록 변경 * order info에 nation record 적용 * 배너에 국가 구분 적용, 국가 마이그레이션 null true로 변경 * 수정: country left_join 중첩 문제 해결 * country 적용 마이그레이션 메소드에 banner 추가 * 수정: Channel 모델 역시 Country 에 의존성을 가집니다. (#36) * 기능: 국가귀속모델 리스트에 Channel 모델 추가 * 수정: 각 Country 객체가 전역 스코프에서 싱글톤 처럼 동작하도록 수정 * 수정: API 목적에 맞게 전역 country_code가 ENV가 아닌 동적으로 적용되도록 수정 및 기본값 적용 * 수정: 채널명이 국가구분 내에서만 유일한 값을 가지도록 수정 * 기능: ProductOption 에 channel_code 컬럼 추가 및 ChannelRecordable 적용 * product title 타입 변경 * 기능: PaperTrail 을 활용한 모델 버저닝 추가 (#37) * 기능 : paper trail을 적용하기 위한 migration * 기능: HistoricalRecordable 전역 모델에 적용 Co-authored-by: Bran <40688044+june20516@users.noreply.github.com> * 기능: 창고로부터 가격 변동 시 유관 모델에 전파 및 저장 (#38) * 기능: 재고 및 판매 가격을 캐싱할 수 있는 필드 및 마이그레이션 추가 * 기능: 가격 컬럼 저장시 유관 레코드에 전파 하도록 설정 * 기능: 타임머신 기능 추가 * 기능: 타임머신 도입 이전의 최신 상태를 기준으로 가격 컬럼 데이터를 마이그레이션 * 기능: 모델의 귀속 국가를 컨텍스트로 구성하는 기능 추가 및 전체국가에 대한 스코프 추가 * 수정: 국가코드 변수를 상속받지 않고 모듈이 계속 가지고 있도록 변경 * 수정: 국가귀속모델에서 기본국가 지정 방법 수정 * 수정: channel_id 가 0인 경우 기본 채널을 세팅하지 못하는 문제 수정 * 기능: 기존 Country 테이블에 iso_code 칼럼 추가 * 기능 : national record의 migration 적용을 위한 data migrate 보완 * 수정: 가격캐싱 마이그레이션 파일 이동 & 세트상품 가격변동 전파 누락부분 수정 Co-authored-by: DONGWON KIM <33149791+lunacircle4@users.noreply.github.com> Co-authored-by: Yonghyun Kim (Fred) <yhkks1038@gmail.com> Co-authored-by: DONGWON KIM <lunacircle4@likelion.org> Co-authored-by: DONGWON KIM <tuna@gomicorp.com> Co-authored-by: JW <jjwoo93@naver.com> Co-authored-by: Yonghyun Kim (Freddy) <fred@gomicorp.com> Co-authored-by: 양원석 <nicholas@gomicorp.com> * 핫픽스: 취소 태그 도입 이전의 주문에 대한 취소태그 소급 적용 - 데이터 마이그레이션을 추가했습니다. (cancelled_tag_into_old_cancelled_cart_item) Co-authored-by: Bran <40688044+june20516@users.noreply.github.com> Co-authored-by: DONGWON KIM <33149791+lunacircle4@users.noreply.github.com> Co-authored-by: DONGWON KIM <lunacircle4@likelion.org> Co-authored-by: DONGWON KIM <tuna@gomicorp.com> Co-authored-by: JW <jjwoo93@naver.com> Co-authored-by: 양원석 <nicholas@gomicorp.com> * 핫픽스: KPI 로직 추가 결제 수단에 따른 결제완료된 주문 건 데이터 추가 * 기타: staging과 production의 서버의.bashrc 파일 추가 * 기능: staging 환경 추가 - ENV['RAILS_FORCE_ENV'] 를 Rails.env 로 수정 - production.rb를 토대로 staging.rb 추가 * 기능: 환경별로 credentials 파일 분리 / database 이름 수정 - 각 환경별로 credentials 파일을 생성하였습니다. (생성된 환경: development, test, staging) - staging의 database 이름을 "store_staging"으로 수정하였습니다. * 레일즈 버전 업데이트 6.0.2.2 * 레일즈 버전 업데이트 6.0.3 * 핫픽스: uninitialized constant Rails 문제 해결 * 기능: 도커 컴포즈 및 도커 최신화 작업 (#46) * 기능: staging, production 환경별 docker-compose 구성 * 기능: docker 최신화. 레일즈 도커 6.0.3 버전 업그레이드 * 기능: 스토어 모바일 버전 리디자인 (#47) * 수령인 및 배송지 모델 생성 * 수정: 배송지 및 수령인과 유저 모델의 관계정의를 수정하기 위한 정리 * 수정: 수령인과 유저 모델의 관계를 1:N으로 수정 * 수정: 배송지 및 수령인과 유저 모델 관계정의상의 오류 수정 * 기능: 스모리 / Notification(공지) 모델 추가 Notification < NationRecord title: 제목 content: 내용 period: 기간 (dateTime) published: 게시여부 (true / false) domain: 게시영역 (store, partner center..) country: 국가 (references) * 기능: 스모리 / cart 모델 국가귀속으로 변경 * 수정: cart의 country 데이터 마이그레이션 오류 수정 * 수정: 스모리 / cart - country 데이터 마이그레이션 리팩토링 및 소스 수정 * 수정: 스모리 / 마이그레이션 파일 디렉토리 정리 * Delete data_schema.rb * 수정: 스모리 / cart country 데이터 마이그레이션에서 country source 보강 cart에서 country 에 접근할 수 있는 데이터를 깊이순으로 접근하여 카트 업데이트 Co-authored-by: Yonghyun Kim (Fred) <yhkks1038@gmail.com> Co-authored-by: YoungHo Choi <0505zxc@gmail.com> Co-authored-by: root <june20516@example.com> Co-authored-by: DONGWON KIM <33149791+lunacircle4@users.noreply.github.com> Co-authored-by: Bran <40688044+june20516@users.noreply.github.com> Co-authored-by: DONGWON KIM <lunacircle4@likelion.org> Co-authored-by: DONGWON KIM <tuna@gomicorp.com> Co-authored-by: JW <jjwoo93@naver.com> Co-authored-by: 양원석 <nicholas@gomicorp.com> Co-authored-by: YoungHo Choi <0505zxc@gmail.com> Co-authored-by: root <june20516@example.com>
1 parent fedb812 commit 1dae5e5

File tree

62 files changed

+607
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+607
-73
lines changed

.dockerignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# envs
22
.env
33

4-
# master.key
4+
# credential keys
55
/config/master.key
6+
/config/credentials/development.key
7+
/config/credentials/test.key
8+
/config/credentials/staging.key
69

710
# Ignore related Docker
811
docker/.docker_password.txt

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
# Ignore master key for decrypting credentials and more.
2424
/config/master.key
25+
/config/credentials/development.key
26+
/config/credentials/test.key
27+
/config/credentials/staging.key
2528

2629
/public/packs
2730
/public/packs-test
@@ -44,6 +47,7 @@ ignore/*
4447
db/backups
4548
db/backups/*
4649
db/schema.rb
50+
db/data_schema.rb
4751

4852
.DS_Store
4953
**/*/.DS_Store

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#### 스테이징용 이미지 빌드 ####
2+
# 추후 staging service 이미지로 배포 가능
3+
FROM gomicorp/rails-with_passenger:6.0.3 as staging
4+
5+
WORKDIR /app
6+
7+
#소스코드 복사
8+
RUN git clone https://github.com/gomicorp/EcommerceAPI.git -b develop /app \
9+
&& git checkout develop && git clean -fd && git reset --hard
10+
11+
# gem 설치 및 logrotate 설치
12+
RUN rm -rf Gemfile.lock && bundle config set without 'development test' && bundle install && rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem \
13+
&& yarn install && yarn cache clean \
14+
&& rm -rf /app/tmp && mkdir /app/tmp && touch /app/tmp/.keep && chmod o+w /app/tmp
15+
16+
17+
#### 프로덕션용 이미지 빌드 ####
18+
# 추후 production service 이미지로 배포 가능
19+
FROM gomicorp/rails-with_passenger:6.0.3 as production
20+
21+
WORKDIR /app
22+
23+
#소스코드 복사
24+
RUN git clone https://github.com/gomicorp/EcommerceAPI.git -b master /app \
25+
&& git checkout master && git clean -fd && git reset --hard
26+
27+
# gem 설치 및 logrotate 설치
28+
RUN rm -rf Gemfile.lock && bundle config set without 'development test' && bundle install && rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem \
29+
&& yarn install && yarn cache clean \
30+
&& rm -rf /app/tmp && mkdir /app/tmp && touch /app/tmp/.keep && chmod o+w /app/tmp

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ gem 'simple_trans', git: 'https://github.com/yhk1038/simple_trans.git'
4747
gem 'paper_trail'
4848

4949
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
50-
gem 'rails', '~> 6.0.1'
50+
gem 'rails', '6.0.3'
5151
# Use mysql as the database for Active Record
5252
gem 'mysql2', '>= 0.4.4'
5353
# Use Puma as the app server

app/controllers/api_controller.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class ApiController < ActionController::API
44
private
55

66
def set_raven_context
7-
return unless production?
7+
return unless %w[production staging].include?(Rails.env)
88

99
# Raven.user_context(id: session[:current_user_id]) # or anything else in session
1010
Raven.extra_context(
@@ -14,10 +14,6 @@ def set_raven_context
1414
)
1515
end
1616

17-
def production?
18-
Rails.env == 'production'
19-
end
20-
2117
def set_country_code
2218
@nation = params[:nation]
2319
ApplicationRecord.country_code = @nation

app/mailers/partner/membership_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Partner
22
class MembershipMailer < ApplicationMailer
33
layout false
44

5-
HOST = Rails.env == 'production' ? 'https://partner.gomicorp.com' : 'http://localhost:3000'
5+
HOST = %w[production staging].include?(Rails.env) ? 'https://partner.gomicorp.com' : 'http://localhost:3000'
66

77
def create(membership, membership_param)
88
@membership = membership

app/models/cart.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def final_result_price
4141
end
4242

4343

44-
class Cart < ApplicationRecord
44+
class Cart < NationRecord
4545
# 신규(desk) 입금대기(pay) 결제완료(paid) 배송준비(ship_ready) 배송중(ship_ing) 취소요청(cancel-request) 반품요청(refund-request) 환불실패 보관함(complete)
4646

4747
# 요청 -> 접수(처리중) -> { 반려 -> 요청 -> ... } -> 완료

app/models/notification.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class Notification < NationRecord
2+
end

app/models/receiver.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Receiver < ApplicationRecord
2+
belongs_to :user
3+
end

app/models/shipping_address.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ShippingAddress < ApplicationRecord
2+
has_many :user_addresses, class_name: 'UserShippingAddress', dependent: :destroy
3+
has_many :users, through: :user_addresses
4+
end

0 commit comments

Comments
 (0)