question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Astronomy Package Compatibility

See original GitHub issue

Hey, I’m currently have an issue on my latest app. I’ve just added redis-oplog and using 2 subscriptions. If I change some of the data, the changes are not reflected on the client side, I still see the old data. It works fine again if I disable redis-oplog. Tested it on dev and production environment, on both I got the same results. Connection to the redis server is established and I also see logs in redis-cli monitor.

516028591.998996 [0 127.0.0.1:55194] "subscribe" "meteor_accounts_loginServiceConfiguration"
1516028591.999342 [0 127.0.0.1:55194] "subscribe" "videos_likes"
1516028592.023996 [0 127.0.0.1:55194] "subscribe" "videos::xxQdY2iCAx7SgQXCd"

Updates are not shown in the redis console, but I’m updating my docs through the Meteor application, so there is no third party change.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgeercommented, Jul 19, 2019

I have published a fork of astronomy as hubroedu:astronomy, which is compatible with redis-oplog, by conditionally using the normal insert/update on the server.

If you want to use astronomy behaviors, and don’t want to rename every import, you can make a new package under packages in your project and add the following files:

package.json

Package.describe({
	name: 'jagi:astronomy',
	version: '2.7.2',
	summary: "Model layer for Meteor",
  git: "https://github.com/hubroedu/meteor-astronomy.git"
});

Package.onUse(function (api) {
  api.use(
    [
      "ecmascript",
      "es5-shim",
      "ddp",
      "mongo",
      "check",
      "minimongo",
      "ejson",
    	"hubroedu:astronomy",
    ],
    ["client", "server"]
  );

  api.mainModule("lib/main.js", ["client", "server"], { lazy: false });
});

lib/main.js

export {
  Astro,
  Module,
  Class,
  Enum,
  Union,
  Type,
  Field,
  ScalarField,
  ObjectField,
  ListField,
  Behavior,
  Validator,
  Validators,
  ValidationError,
  Event,
  reservedKeywords
} from "meteor/hubroedu:astronomy";
0reactions
theodorDiaconucommented, Feb 26, 2018

@dnish it’s because you use ['status'] and in updateValue you change name, pls replace ‘status’ with ‘name’ inside imports/test.js and it works, just tried it myself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Affiliated Packages - Astropy
agnpy Website Repository Maintainer(s): Cosimo Nigro Maintainer(s): Cosimo Nigro APLpy Website Repository Maintainer(s): Thomas Robitaille and Eli Bressert Maintainer(s): Thomas Robitaille a...
Read more >
Astronomical Python Packages - Astro Data Science
Another astropy compatible library is astroplan. It can be useful for those who are interested in observational astronomy. astroML. This python package has...
Read more >
ASCOM - Standards for Astronomy
Both Alpaca and Classic ASCOM seamlessly operate in the background of many of the products you are currently using. Both provide the same...
Read more >
Debian Astro complete packagelist
Here we list all Debian packages that are mentioned in the Astrophysics Source ... compatibility with IDL 7.1 and is usable for astronomical...
Read more >
Astropy: A community Python package for astronomy
This package is based on a derived version of the Standards of Fundamental Astronomy (SOFA) time and calendar library (Wallace 2011). Leveraging the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found