Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Anton S
    @SPAHI4
    Does astronomy supports validating of nested classes?
    Mike Cardwell
    @mikecentiq
    When using inheritance with a typeField, I thought that by calling Parent.find(), it would also pull out Child items. It doesn't though. Shouldn't it? This is certainly the expected behaviour to me... Could an option be added to allow this?
    Adam Heller
    @HellerCommaA
    Anyone implement easy search with astronomy yet?
    Adam Heller
    @HellerCommaA
    update: works with no issues
    Adam Heller
    @HellerCommaA
    will boolean false values always show?
    my true values are showing ... just not my false values. trying to make sure it's not a framework thing before i go tearing into my code.
    funny. default: true will display 'true' default: false will display ''
    Adam Heller
    @HellerCommaA
    @jagi intentional?
    ah crap. nvm, it's probably on me. i have to modify my template. nvm.
    maco144
    @maco144
    if I require validator unique on field _id that then means that it will apply to any nested class with _id as well. for example I am inserting Player class with field _id into Record. Record requires unique _ID but Player does not (as player can be part of many records). This is intended since it is a hard rule on the validation of field _id (correct?)
    I hope that is clear. Validator is blocking additional Records from being created if I attempt to insert a Player with _id whose _id is already in a different record. I want the validator to be only on the _id of Record Collection, not on the Player Class _id
    maco144
    @maco144
    @HellerCommaA Did you figure out the true/false showing issue? I think this is a spacebars issue see https://github.com/meteor/meteor/blob/master/packages/spacebars/README.md#in-attribute-values
    Aharon Rossano
    @aharonrossano
    Hi, I can't work out how to get relations to work. My relations object comes back as 'relations: null'.
    I installed the meteor package jagi:astronomy-relations, so I assume it should work.
    got it. it shouldn't be in fields! :) yay
    mm it still didn't work :S
    Aharon Rossano
    @aharonrossano
    is it possible it doesn't work with meteor 0.13?
    Aharon Rossano
    @aharonrossano
    i see. maybe it's not supposed to work just yet: jagi/meteor-astronomy-relations#6
    Charles Baker
    @czbaker
    Random question: If I'm wanting to validate input for something like a user registration form, can Astronomy be used for that, or...should I just do stuff like that manually (validating a valid email format, username length, password length, etc.)
    Arihant Verma
    @gdad-s-river
    Hey @jagi or anyone who knows, may I know the name of the reading progress bar meteor package that you used in the meteor-astronomy documentation page?
    Arihant Verma
    @gdad-s-river
    Also, since I'm starting with Meteor, I'd like to know some resources through which I can start building a blog looking website similar to the astronomy and bulletproofmeteor websites, using Meteor, could anybody help ?
    Sam Hulick
    @ffxsam
    This message was deleted
    This message was deleted
    Antoine Cordelois
    @Billybobbonnet
    Gello all
    Hello*
    Is there testimonies or examples of large app using astronomy out there?
    I am about to migrate a quite large app to a package based architecture
    I consider the whole code refactoring in the process
    and maybe including astronomy
    but I can't find any clues of how it behaves when scaling up
    vs simpleschemas + collectionhooks
    for instance
    Rafal Lesniak
    @rlesniak
    Hello. I've got one question, how to implement astronomy functionality with Meteor Accounts? for now using const user = Accounts.createUser(data);
    does not ping Astro
    Michael Bauer
    @mbabauer
    Can the object type hold any type of value? I am looking to implement a properties object, where the value can be a string, number, object, or even an array. What are the restrictions put on the validation of an object type?
    Tsegaselassie Tadesse
    @tsega

    @rlesniak, here’s what I’ve done.

    User = Astro.Class({
        name: 'User',
        collection: Meteor.users,
        fields: {
            username: 'string',
            password: 'string',
            profile: 'object',
            "profile.roleId": 'string',
            services: 'object',
            createdAt: {
                type: 'date',
                default: function() {
                    return new Date();
                }
            }
        },
        validators: {
            username: [
                Validators.required(null, "Please provide a username"),
                Validators.string(),
                Validators.minLength(5)
            ],
            password: [
                Validators.required(null, "Please provide a password"),
                Validators.string(),
               // Several other validators here
            ],
            profile: Validators.required(),
            "profile.roleId": [
                Validators.required(null, "Please select the Role for the user"),
                Validators.string()
            ],
            createdAt: [
                Validators.required(),
                Validators.date()
            ]
        },
        methods: {
            role: function() {
              return Roles.findOne({_id: this.profile.roleId});
            }
        }
    });

    Let me know if you need more help.

    Anwain
    @Anwain
    Hey everyone, I get this error popping up when I start meteor. Anyone have a similar issue?
    jagi_astronomy.js?90a6a2e…:1601 Uncaught TypeError: schema.eventManager.on is not a function
    Sam Hulick
    @ffxsam
    @jagi Is there a helper function available to clean an object of all Astronomy properties? It's kind of tedious to have to always use lodash _.pick to just choose the fields relevant to my object when using in other contexts such as Redux
    some of the Astronomy properties are causing problems w/ Meteor's validated methods
    Antoine Cordelois
    @Billybobbonnet
    @jagi fyi the documentation website is down
    Adam Heller
    @HellerCommaA
    @maco144 re: spacebars showing true/false values (scroll up a bit for my last comments, i always forget to check gitter). I believe i did resolve this.
    Sergio Tapia
    @sergiotapia
    Hi guys, since the documentation website is down, does anyone have example of Astronomy v2?
    Sam Hulick
    @ffxsam
    @sergiotapia I didn't even realize it was out
    Kerem Sevencan
    @keremciu
    hi guys, do you have any update method example for v2?
    I'd like to update my record on server-side with an update method but I've failed with v2 update :(
    Kerem Sevencan
    @keremciu
    oh very bad :)
    doc.save({ environment: 'server' }) is fix my problem
    v2 is really good, so thanks for that @jagi
    jagi
    @jagi
    @sergiotapia You can check this out https://github.com/jagi/meteor-astronomy-examples/tree/v2
    @keremciu no problem :)
    Kerem Sevencan
    @keremciu
    hello :)