Coder Social home page Coder Social logo

Mentions: No email is send about cocalc-docker HOT 2 OPEN

behinger avatar behinger commented on September 17, 2024
Mentions: No email is send

from cocalc-docker.

Comments (2)

williamstein avatar williamstein commented on September 17, 2024

any hints...

I don't remember ever testing this out fully with cocalc-docker. On https://cocalc.com it works very well of course, and code for this is exactly the same, but it's run as part of a microservice on Kubernetes, instead of a monolith (same code, very different architecture).

When you run cocalc-docker it runs this code: https://github.com/sagemathinc/cocalc/blob/master/src/packages/hub/hub.ts
with the command line flag --all.

Right here https://github.com/sagemathinc/cocalc/blob/master/src/packages/hub/hub.ts#L439 passing --all should result in the mentions flag being enabled. The check of the mentions flag is part of the startServer function here https://github.com/sagemathinc/cocalc/blob/master/src/packages/hub/hub.ts#L158 which gets called at https://github.com/sagemathinc/cocalc/blob/master/src/packages/hub/hub.ts#L481

First question: do you see "enabling handling of mentions..." in the log?

The actual handling of mentions happens here: https://github.com/sagemathinc/cocalc/blob/master/src/packages/server/mentions/handle.ts

You could double check that after you @mention, there is an entry in the postgresql mentions table.

Is there anything in the log saying "mentions - handle"?

If you want to know how to make changes to any of this code and use the changes, the answer is basically, become root, do umask 022, then edit code in /cocalc/src in your container. You can build everything via pnpm run build from /cocalc/src, and then restart cocalc-docker to get the new version. Obviously, there are a bunch of ways to iteratively do everything much, much faster. If you're a full stack or web developer interested in working on the cocalc codebase, let me know.

from cocalc-docker.

behinger avatar behinger commented on September 17, 2024

Ah this is helpful already! I have access to the server on Monday again. The rebuilding I have done before, but I'm not a full stack developer and haven't worked with npm before.

One clarification: Mentions in general work nicely, just the email notifications for mentions are not working.

from cocalc-docker.

Related Issues (20)

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.