Coder Social home page Coder Social logo

rails4-template's People

Contributors

deppbot avatar marsz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rails4-template's Issues

acts as taggable on

  • installation
  • patch & extended model
  • filtering
  • form implement (fast create new tag)

雙重欄位設計的支援 (預覽+發佈),前端專用預覽的sha

例如:

某一些 CMS 系統 的某些 table article 需要比較嚴謹的發佈方式
title, content, pic (前端欄位)
title_pr, content_pr, pic_pr (後端欄位)

後台編輯時,僅能編輯 *_pr 欄位
按下「發佈」時,直執行 欄位資料複製到 前端欄位

好處:
後台可隨意按下 save,前台不會立刻受到影響,還可以 reload 還原
按下「發佈」時才會 push 給前端

壞處:
多了欄位,要多「發佈」動作

branches management

目前的 branch 有 master, with-assets

master

  • 算是 base branch,所有的 branch 都會從這裡開出來
  • 很基礎,沒有預設任何目的性,只放其他 branch 都會共用的東西,例如 sidekiq、mailer

with-assets

  • 就是有前端的,包含後台

需求一

想要開一個純 API 目的的 branch,裡面會有 error 的統一格式處理,同時也包含 user sign 後的 token 處理

需求二

可能會有混合型的需求,例如同時有前端、也有 API 都在同一個 app 內

問題

  • 開太多 branch 的話,master 萬一有大更新,其他的 branch 都要 rebase,像這次 rails 4.1 -> 4.2, with-assets 就 rebase 了好久
  • 承上,也有重複性問題,例如 A, B, C branch 都是從 master 長出來,假如有一個地方只有 B, C 共用,但 A 用不到,這樣改 master 也不對,就只能重複去改 B, C

解決方案

  • 維持目前兩個 branch 就好,master 就直接進化為需求一,然後 with-assets 就會自動進化成需求二 XD

@phrase5036 @kzdahlia @ohmkao 有沒有其他的想法?

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.