Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 12 2021 12:30
    fahtative commented #26
  • Sep 12 2021 12:17
    fahtative commented #26
  • Sep 12 2021 12:17
    fahtative commented #26
  • Sep 12 2021 12:13
    fahtative commented #26
  • Sep 12 2021 12:01
    fahtative commented #26
  • Sep 12 2021 12:01
    fahtative commented #26
  • Sep 12 2021 11:59
    fahtative commented #26
  • Sep 12 2021 11:59
    fahtative commented #26
  • Nov 30 2020 19:39
    metasoarous closed #34
  • Nov 30 2020 19:39
    metasoarous commented #34
  • Nov 16 2020 05:16
    metasoarous commented #34
  • Nov 14 2020 12:15
    jpmonettas commented #34
  • Nov 14 2020 12:14
    jpmonettas synchronize #34
  • Nov 14 2020 00:59
    metasoarous commented #34
  • Nov 14 2020 00:58
    metasoarous commented #34
  • Nov 14 2020 00:57
    metasoarous commented #34
  • Jul 22 2020 12:14
    jpmonettas commented #34
  • Jul 21 2020 21:34
    metasoarous commented #34
  • Jul 11 2020 13:34
    jpmonettas synchronize #34
  • Jul 07 2020 12:12
    xlfe commented #35
Christopher Small
@metasoarous
But here again, where we need to, we can build things to fall back to simple tx filters.
For now at least. Eventually, maybe we'll build our own differential dataflow and datalog. But trying to take it one step at a time.
Datsync has been getting some more attention lately, and may continue to this next month or two.
drew
@drewverlee
thanks! sorry i just saw this.
Erik Kaplun
@erikkaplun
quick question: should posh be considered to be in working condition as of currently?
Christopher Small
@metasoarous
Hi @eallik. More or less, yes. However, there are a couple of outstanding bugs which remain to be fixed.
Basically, as long as you avoid recursive queries, you should be mostly fine.
If you need a recursive query, you can still use a custom match pattern for triggering updates.
Erik Kaplun
@erikkaplun
alright, that seems good
Christopher Small
@metasoarous
Sure thing. If you find anything amiss, please post an issue on GitHub.
Erik Kaplun
@erikkaplun
yes
Erik Kaplun
@erikkaplun
working support for Datomic would currently require datsys, as datomic.clj is mostly todo?
Christopher Small
@metasoarous
Yeah, you'd have to ask @alexandergunnarson
Erik Kaplun
@erikkaplun
at least it is known that posh+datsync is a workable combination
Christopher Small
@metasoarous
Yes, as long as you are ok with full db synchronization
I've got a plan for remote subscriptions and partial db synchronization in datsync
Erik Kaplun
@erikkaplun
could work with full db sync in dev/stage, but not later obviously...
Christopher Small
@metasoarous
The vision there has become clearer of late, what with d3f implementing differential datalog computations
Erik Kaplun
@erikkaplun
what does "d3f" stand for?
Christopher Small
@metasoarous
Sorry; 3df
Erik Kaplun
@erikkaplun
nice, didn't know about it
Grant Peltier
@gfpeltier
Hi Everyone. I apologize if this issue has been discussed in more depth elsewhere but I was hoping to revisit mpdairy/posh#21. Is there any glaring issue with supporting pulls within queries? I noticed that there is an existing function (posh.lib.q-analyze/q-analyze-with-pulls) which was commented out back in 2016 and is naturally broken from the 0.5 refactor. Is there a particular reason why support was dropped?
Brian Marco
@bamarco
@denistakeda I hope this is still the right place to gitter. I completed the rum plugin for posh. I tried doing a pull request to the new repository, but the create pull request button wasn't available (something to do with me being of fork off mpdairy).
Denis Krivosheev
@denistakeda
Hello @bamarco . Yes, I visit this chat from time to time. Checked out the repo, there is no any restrictions on PRs, also there were some PRs already. What does it say to you?
Brian Marco
@bamarco
@denistakeda I figured it out. The open pull request in mpdairy's repository was interferring in some way. I closed that pr and put one in at your repository.
Paul Brown
@PaulBrownMagic
I'm trying to use Posh (posh.reagent & v "0.5.8") and although my transactions using posh/transact! and queries with posh/q or posh/pull are working fine my component's aren't updating, although they were when I was pulling that data out of an r/atom. There's some complexity to the components, with one pulling data and a grandchild through a defmulti doing the transact. How would I go about checking if my components are registered and debugging the lack of update?
Paul Brown
@PaulBrownMagic

Got it. It's with type 2 components. I had them in the form:

(defn edit-name
  [conn n]
  (let [form-value (r/atom name)
        peep @(p/pull conn '[*] n)
        pname (:name peep)]
    (fn [conn n]
      [:div
       [:label (str "Name " pname ": ")]
       [:input
        {:type "text"
         :value @form-value
         :on-change #(reset! form-value (-> % .-target .-value))
         :on-blur #(p/transact! conn
                                [[:db/retract n :name pname]
                                 [:db/add n :name @form-value]])}]])))

But the posh pull there needs to be inside the returned function, like so:

(defn edit-name
  [conn n]
  (let [form-value (r/atom name)]
    (fn [conn n]
      (let [peep @(p/pull conn '[*] n)
            pname (:name peep)]
        [:div
         [:label (str "Name " pname ": ")]
         [:input
          {:type "text"
           :value @form-value
           :on-change #(reset! form-value (-> % .-target .-value))
           :on-blur #(p/transact! conn
                                  [[:db/retract n :name pname]
                                   [:db/add n :name @form-value]])}]]))))
Paul Brown
@PaulBrownMagic
Although if the editing form is repeated that input value isn't updated...
Which I imagine is because the atom is assigned outside of it again...
David Strawn
@strontian
Hi all - I'm wondering if anyone has used posh from vanilla js, or insight into whether it's possible?
Denis Krivosheev
@denistakeda
Hello @strontian . Never tried it, but I don't see any reason why it shouldn't. Please tell us if you run into some issues.