merefield
(Robert)
918
- μμ : μ μ(Topic) μ§λλ₯Ό μ§μ μ΄ λ λ¬Έμ κ° λ°μνμ§ μλλ‘ μμ
- μμ : μΉ΄ν
κ³ λ¦¬ μ§λμ μ μ μ§λ κ° μ νμ΄ μ΄μ μ¬λ°λ₯΄κ² μλνλλ‘ μμ
- μλνμ§ μλ WIP μ§λ ν
μ€νΈ
@vincefrommtl, @Stephane_Roy @packman μ΄ μ
λ°μ΄νΈλ₯Ό ν
μ€νΈν΄ μ£Όμκ² μ΅λκΉ? μμ λ²μλ₯Ό μ°Έκ³ ν΄ μ£ΌμΈμ. κ³§ μΆκ° μμ μ¬νμ΄ μ¬ μμ μ
λλ€.
(κΈ°μ μ μ°Έκ³ : Leaflet λΌμ΄λΈλ¬λ¦¬κ° μ μ κ°μ²΄μ΄κΈ° λλ¬Έμ QUnitμμ μ΄λ₯Ό μΈμνμ§ λͺ»νλ κ² κ°μ΅λλ€. λ°λΌμ μ΄ μμ μ¬νμ λν΄ μμ ν ν΅ν©λ FE ν
μ€νΈλ₯Ό μ 곡ν μ μμμ΅λλ€. Leafletκ³Ό QUnitμ ν¨κ» μ¬μ©νκ² νλ λ°©λ²μ μμλ λΆμ΄λΌλ©΄ μλ € μ£ΌμκΈ° λ°λλλ€.)
3κ°μ μ’μμ
νΌλλ°±:
- μ μ λ§΅κ³Ό μΉ΄ν
κ³ λ¦¬ λ§΅ κ°μ μ νμ μ μμ μΌλ‘ μλν©λλ€. νμ§λ§ λ°λ λ°©ν₯(μΉ΄ν
κ³ λ¦¬ λ§΅μμ μ μ λ§΅μΌλ‘)μ μΉ΄ν
κ³ λ¦¬ κ° μ νκ³Ό λ§μ°¬κ°μ§λ‘ κΉ¨μ Έ μμ΅λλ€.
- μ
κ·Έλ μ΄λ μ΄ν λ‘κ·Έμμ μ΄ μ€λ₯λ₯Ό νμΈνμ§ λͺ»νμ΅λλ€:
ActionView::Template::Error (No route matches {:action=>"map_feed", :controller=>"list"}). 
- μλ‘μ΄ λ²κ·Έ: λλλ‘ λ§΅μμ ν΄λ¬μ€ν°λ§λ λ§ν¬κ° νλνμ λ μμΉ λ§μ»€λ§ νμλκ³ λΌλ²¨μ νμλμ§ μμ΅λλ€.
- μλ‘μ΄ λ²κ·Έ: λλλ‘ λ§΅μ λ§μ»€ λΌλ²¨μ΄ ν΄λΉ μ£Όμ μ λ§ν¬λμ§ μμ΅λλ€.
- μλ‘μ΄ λ²κ·Έ: μ μ λ§΅μ΄ μ΄μ μΉ΄ν
κ³ λ¦¬ λ§΅κ³Ό λμΌν λ²κ·Έμ μν₯μ λ°κ³ μμ΅λλ€. μ¦, μΌλΆ λ§μ»€λ§ νμλ©λλ€(μλ μ°Έμ‘°).
λ§μ»€ μκ° μμλ³΄λ€ μ μ λ§΅μ λν΄: μμΈν μ΄ν΄λ³Έ κ²°κ³Ό, μ΄λ μ΅κ·Ό 20μΌ(λλ κ·Έ μ λ) λμ νλμ΄ μμλ μ£Όμ μ λν λ§μ»€λ§ νμνκ³ μμΌλ©°, μ΅λ 30κ°κΉμ§ νμλ©λλ€. μ΄λ μ°λ¦¬ ν¬λΌμ μ€μ λ¬Έμ μΌ μ μμκΉμ? λ§€μ° κ΅¬μ²΄μ μΈ μ€μ μ²λΌ 보μ
λλ€! νμ§λ§ μ°λ¦¬λ ν΄λΉ μ€μ μμ μ무κ²λ λ³κ²½νμ§ μμμ΅λλ€. μμΉ λ§΅ μ΅λ μ£Όμ μλ μ΅λ 1700μΌλ‘ μ€μ λμ΄ μμΌλ©°, μ΅κ·Ό 20μΌ λμ νλμ΄ μμλ μ£Όμ μ λ§μ»€λ§ νμνλλ‘ νλ μκ° κ΄λ ¨ μ€μ μ΄ μλμ§ μλ¬Έμ
λλ€.
1κ°μ μ’μμ
packman
(Chris McMahon)
920
μ
κ·Έλ μ΄λ ν κΈλ‘λ² λ§΅μ μ΄μλλ° λ§μ»€(ν ν½)κ° νμλμ§ μμμ΅λλ€. λ§μ»€κ° μλ ν ν½μ μμΉλ₯Ό νΈμ§ν λ€ λ³κ²½ μ¬ν μμ΄ κ·Έλ₯ μ μ₯νλ©΄ λ§μ»€κ° λνλ©λλ€. μ λ§μ»€λ λͺ¨λ 20μΌ μ΄μ λ κ²μ΄λ―λ‘, μλ§λ @vincefrommtl λμ΄ λ³΄κ³ μλ λ¬Έμ μ κ°μ κ²μΌκΉμ?
μμ : κ° ν ν½μ βλ§΅ 보기β λ²νΌμ κΈλ‘λ² λ§΅μ λ§μ»€κ° νμλμ§ μλλΌλ μ¬λ°λ₯Έ λ§μ»€ μμΉλ₯Ό νμν©λλ€.
1κ°μ μ’μμ
merefield
(Robert)
921
κ°μ¬ν©λλ€, μ¬λ¬λΆ. ν λ² λ νμΈν΄ λ³Όκ²μ.
2κ°μ μ’μμ
merefield
(Robert)
922
μ΄κ²μ μμ ν μμ μ μλμ§λ§, μ μκ°μλ μΈλΆ λ§ν¬μμ μ§μ λ‘λνκ±°λ λΈλΌμ°μ λ₯Ό μλ‘κ³ μΉ¨ν λ λ°μνλ λ§΅ μ€λ₯λ₯Ό νΌνλ©΄μ μ΄μ μ μ£Όμ μμΉλ₯Ό 볡μν κ²μ
λλ€:
μλ €μ§ λ¬Έμ : μ§μ μ μΈ Map => Category Map μ νμ ν΄κ²°νμ§ λͺ»νμ΅λλ€(νμ§λ§ μ΄λ κ²½κ³ μ¬λ‘μ¬μΌ ν©λλ€). κ·Έλ¬λ κ·Έ μΈ λͺ¨λ μ¬νμ κ°μ λμ΄μΌ ν©λλ€.
1κ°μ μ’μμ
packman
(Chris McMahon)
923
λ΄μΌ ν
μ€νΈν μμ μΈλ°, λ°©κΈ ν μ¬μ©μκ° λ―Έκ΅ μ§μμ΄ μ΄μ βλμ, κ΅κ°, μ£Όβ μμλ‘ νκΈ°λκ³ μλ€κ³ μ§μ νμ΅λλ€. μλ₯Ό λ€μ΄, Atlanta, US, Georgiaμ²λΌμ.
κ°λ¨ν ν
μ€νΈ κ²°κ³Ό, μ΄ μλ‘μ΄ μ
λ°μ΄νΈλ₯Ό ν΅ν΄ μ§λμ λͺ¨λ λ§μ»€λ₯Ό λ³Ό μ μμμ νμΈνμ΅λλ€. μ λ§ κ°μ¬ν©λλ€. 
λΉλΆκ°μ μ¬μ©μκ° νλ μ΄μμ μΉ΄ν
κ³ λ¦¬ λ§΅μΌλ‘ μ΄λν λ κΉ¨μ§ μ νμ μ°ννλλ‘ μ‘°μΈν μμ μ
λλ€.
1κ°μ μ’μμ
merefield
(Robert)
925
μ΅κ·Ό λ³κ²½ μ¬νμ λͺ¨λ λ§΅ μΈκ΅¬μ κ΄λ ¨μ΄ μμ΅λλ€.
packman
(Chris McMahon)
926
κ΅κ°/μ£Ό μμκ° μ΅μ λ²μ μ΄ μλλλ€. μ§λ λ©°μΉ κ°μ λ²μ μμ μ΄λ₯Ό λ³Έ μ μ΄ μλ€κ³ κΈ°μ΅νκΈ° λλ¬Έμ μΈκΈν κ²μ
λλ€.
1κ°μ μ’μμ
merefield
(Robert)
927
@packman μ§κΈκΉμ§λ μ΄μ μ λ°μν λ¬Έμ λ₯Ό μμ νμ΅λλ€:
μ΄μ ν
μ€νΈλ‘ 컀λ²λκ³ μμ΅λλ€.
ν΄λΉ λ¬Έμ λ₯Ό μ§νμ€μμ κΊΌλ΄μ€ @davidμκ² λ€μ νλ² κ°μ¬λ립λλ€.
3κ°μ μ’μμ
blake
(Blake Erickson)
928
@merefield μλ
νμΈμ, κ°λ¨ν λ§μλ리면 modify_user_params λ©μλλ μ΄λ―Έ μ€λμ λΆν° λΉμΆμ²(deprecated) μνμ΄λ©°, Discourseκ° 3.2.0.beta1-dev λ²μ μΌλ‘ μ
λ°μ΄νΈλμκΈ° λλ¬Έμ κ³§ μ κ±°λ μμ μ
λλ€.
discourse-locations/lib/users_map.rb
35: def modify_user_params(attrs)
μκ° λμ€ λ users_controller_update_user_params μμ μ(modifier)λ₯Ό μ¬μ©νλλ‘ μ
λ°μ΄νΈν΄ μ£Όμ€ μ μμκΉμ? κ°μ¬ν©λλ€!
1κ°μ μ’μμ
merefield
(Robert)
929
λ€, μΆκ° μ 보λ₯Ό μλ €μ£Όμ
μ κ°μ¬ν©λλ€. μ΄λ² μ£Όμ νμΈν΄ λ³΄κ² μ΅λλ€.
1κ°μ μ’μμ
merefield
(Robert)
930
Blake, μμ
μ΄ μλ£λμλλ° λ¦¬λ·°μ΄λ‘ μΆκ°ν΄λ λ κΉμ?
3κ°μ μ’μμ
blake
(Blake Erickson)
931
λ©μ§λ€μ, κ°μ¬ν©λλ€!
2κ°μ μ’μμ
merefield
(Robert)
932
κ°μ¬ν©λλ€, λ³ν©νμ΅λλ€!
1κ°μ μ’μμ
Richie
(Richie Rich)
933
λμ μμμ μ νκ² λμ΄ μ£μ‘ν©λλ€. λ²κ·Έ λ³΄κ³ κ° μμ΅λλ€.
νμ¬ μ΅μ λ²μ μ μ¬μ© μ€μ΄λ©°, μ€λ μμΉ¨ μ
λ°μ΄νΈνμ΅λλ€: 3.2.0.beta1-dev (7ca5ee6cd2)
2μ£Ό μ λ§μ§λ§ μ
λ°μ΄νΈ μμλ μμλ μ΄μν λ¬Έμ κ° λ°μνμ¬, μ¬μ©μ μ μ νλκ° μλ μ¬μ©μμ νλ‘νμ λ μ΄μ νΈμ§ν μ μμ΅λλ€.
λ€μ μ¬μ©μλ₯Ό νΈμ§νλ €κ³ ν©λλ€: https://example.com/u/username/preferences/profile
νμ΄μ§λ μ μμ μΌλ‘ λ‘λλ©λλ€:
μ μ₯μ ν΄λ¦νλ μ¦μ μ€λ₯κ° λ°μν©λλ€:
μ΄ λ¬Έμ κ° λλ¬λ μ΄μ λ μ°λ¦¬ ν΄λ½ λ©€λ²κ° λ±κΈμ μ
κ·Έλ μ΄λν λ λ€λ₯Έ μΉμ¬μ΄νΈ μ€ νλκ° βmembershipβ μ¬μ©μ μ μ νλλ₯Ό μ
λ°μ΄νΈνλ €κ³ μλνκΈ° λλ¬ΈμΈλ°, μ΄λ Discourse API μλν¬μΈνΈκ° 500 μ€λ₯λ₯Ό λ°μμν€κ³ μμ΅λλ€.
PostmanμΌλ‘ μ¬νμ μλν΄λ λμΌν λ¬Έμ κ° λνλ©λλ€:
Discourse λ‘κ·Έμλ λ€μκ³Ό κ°μ λ΄μ©μ΄ νμλ©λλ€:
κ·Έλ¦¬κ³ :
plugins/discourse-locations/plugin.rb:188:in `block (2 levels) in activate!'
lib/discourse_plugin_registry.rb:293:in `apply_modifier'
app/controllers/users_controller.rb:2036:in `user_params'
app/controllers/users_controller.rb:198:in `update'
actionpack (7.0.7) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.0.7) lib/abstract_controller/base.rb:215:in `process_action'
actionpack (7.0.7) lib/action_controller/metal/rendering.rb:165:in `process_action'
actionpack (7.0.7) lib/abstract_controller/callbacks.rb:234:in `block in process_action'
activesupport (7.0.7) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
app/controllers/application_controller.rb:420:in `block in with_resolved_locale'
i18n (1.14.1) lib/i18n.rb:322:in `with_locale'
app/controllers/application_controller.rb:420:in `with_resolved_locale'
activesupport (7.0.7) lib/active_support/callbacks.rb:127:in `block in run_callbacks'
activesupport (7.0.7) lib/active_support/callbacks.rb:138:in `run_callbacks'
actionpack (7.0.7) lib/abstract_controller/callbacks.rb:233:in `process_action'
actionpack (7.0.7) lib/action_controller/metal/rescue.rb:23:in `process_action'
actionpack (7.0.7) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
activesupport (7.0.7) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.7) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.7) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.0.7) lib/action_controller/metal/instrumentation.rb:66:in `process_action'
actionpack (7.0.7) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (7.0.7) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack (7.0.7) lib/abstract_controller/base.rb:151:in `process'
actionview (7.0.7) lib/action_view/rendering.rb:39:in `process'
actionpack (7.0.7) lib/action_controller/metal.rb:188:in `dispatch'
actionpack (7.0.7) lib/action_controller/metal.rb:251:in `dispatch'
actionpack (7.0.7) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.0.7) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.0.7) lib/action_dispatch/journey/router.rb:50:in `block in serve'
actionpack (7.0.7) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (7.0.7) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.0.7) lib/action_dispatch/routing/route_set.rb:852:in `call'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
rack (2.2.8) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.8) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.8) lib/rack/head.rb:12:in `call'
actionpack (7.0.7) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:389:in `call'
lib/middleware/gtm_script_nonce_injector.rb:10:in `call'
rack (2.2.8) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.8) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/cookies.rb:704:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (7.0.7) lib/active_support/callbacks.rb:99:in `run_callbacks'
actionpack (7.0.7) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'
logster (2.12.2) lib/logster/middleware/reporter.rb:43:in `call'
railties (7.0.7) lib/rails/rack/logger.rb:40:in `call_app'
railties (7.0.7) lib/rails/rack/logger.rb:27:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/request_id.rb:26:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
rack (2.2.8) lib/rack/method_override.rb:24:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.2.8) lib/rack/sendfile.rb:110:in `call'
actionpack (7.0.7) lib/action_dispatch/middleware/host_authorization.rb:131:in `call'
message_bus (4.3.7) lib/message_bus/rack/middleware.rb:60:in `call'
lib/middleware/request_tracker.rb:233:in `call'
railties (7.0.7) lib/rails/engine.rb:530:in `call'
railties (7.0.7) lib/rails/railtie.rb:226:in `public_send'
railties (7.0.7) lib/rails/railtie.rb:226:in `method_missing'
rack (2.2.8) lib/rack/urlmap.rb:74:in `block in call'
rack (2.2.8) lib/rack/urlmap.rb:58:in `each'
rack (2.2.8) lib/rack/urlmap.rb:58:in `call'
unicorn (6.1.0) lib/unicorn/http_server.rb:634:in `process_client'
unicorn (6.1.0) lib/unicorn/http_server.rb:739:in `worker_loop'
unicorn (6.1.0) lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
unicorn (6.1.0) lib/unicorn/http_server.rb:143:in `start'
unicorn (6.1.0) bin/unicorn:128:in `<top (required)>'
vendor/bundle/ruby/3.2.0/bin/unicorn:25:in `load'
vendor/bundle/ruby/3.2.0/bin/unicorn:25:in `<main>'
μ΄μνκ²λ, μ μμ μ νλ‘νμ μ¬μ©μ μ μ νλλ₯Ό ν¬ν¨νμ¬ μ μμ μΌλ‘ νΈμ§ν μ μμ΅λλ€.
νμ§λ§ λ€λ₯Έ μ¬μ©μλ λ μ΄μ νΈμ§ν μ μμΌλ©°, system κ³μ λ μ°λ¦¬μ APIλ₯Ό ν΅ν΄ μ
λ°μ΄νΈλ₯Ό μνν μ μμ΅λλ€.
Locations νλ¬κ·ΈμΈμ λΉνμ±ννλ©΄ λͺ¨λ κ²μ΄ λ€μ μ μμ μΌλ‘ μλν©λλ€:
3κ°μ μ’μμ
merefield
(Robert)
934
@Richie λ³΄κ³ ν΄ μ£Όμ
μ κ°μ¬ν©λλ€.
μ¬νν΄ λ³΄μμ΅λλ€.
λκ΅°κ°κ° μμΉ μ λ³΄κ° μλ κ²½μ°μλ§ λ°μνλ κ² κ°μ΅λλ€.
μ½μ΄μμ λΉμΆμ²(deprecation) μ²λ¦¬λ νλͺ©μΌλ‘ μΈν΄ μ΅κ·Ό 리ν©ν λ§μ νλλ°, (κ½€ μ€μν) μΌμ΄μ€λ₯Ό λμΉκ³ μμμ΅λλ€.
κ³§ ν¨μΉνκ² μ΅λλ€.
5κ°μ μ’μμ
Richie
(Richie Rich)
935
μ, κ·Έλ¬λ©΄ μ κ° μ νλ‘νμ μ±κ³΅μ μΌλ‘ νΈμ§ν 건 μ°μ°μ΄μμ μλ μκ² λ€μ. μ νλ‘νμλ μμΉ μ λ³΄κ° μμΌλκΉμ 
κ±±μ λ§μΈμ, κ³μ λμμ£Όμ
μ κ°μ¬ν©λλ€ 
merefield
(Robert)
936
μ§κΈ μμ λμμ κ²μ
λλ€:
8κ°μ μ’μμ
Richie
(Richie Rich)
937
μ€λ μμΉ¨ μ
λ°μ΄νΈ κ²°κ³Ό, λ μ΄μ HTTP/500 μ€λ₯κ° λ°μνμ§ μμ΅λλ€.
λΉ λ₯΄κ² μμ ν΄ μ£Όμ
μ κ°μ¬ν©λλ€, Robert.

3κ°μ μ’μμ