Giter VIP home page Giter VIP logo

Comments (23)

btkelly avatar btkelly commented on July 24, 2024

I like this, if there are no objections I say we go with this

from gandalf.

stkent avatar stkent commented on July 24, 2024

The version keys could be a little more descriptively named. What does each represent?

from gandalf.

stkent avatar stkent commented on July 24, 2024

Same for blocking, something like blockUser or blockLaunch seems a little clearer.

from gandalf.

btkelly avatar btkelly commented on July 24, 2024

Naming 👊

from gandalf.

stkent avatar stkent commented on July 24, 2024

enhanced-buzz-6645-1374748131-4

from gandalf.

btkelly avatar btkelly commented on July 24, 2024

Haha nice.

I'm down with being a little more verbose but I think it should remain the same in both message blocks so we can use the same models. Maybe like minimumVersion? And blockUser sounds fine.

from gandalf.

dtrenz avatar dtrenz commented on July 24, 2024

gandalf json RFC-rev2:

{
    "android": {
        "alert": {
            "message": "We are currently performing server maintenance. Please try again later.",
            "appLockout": true
        },
        "optionalUpdate": {
            "optionalVersion": "3.9.0",
            "message": "A new version of the application is available, please click below to update to the latest version."
        },
        "requiredUpdate": {
            "minVersion": "3.8.0",
            "message": "A new version of the application is available and is required to continue, please click below to update to the latest version."
        }
    }
}

from gandalf.

dtrenz avatar dtrenz commented on July 24, 2024

I'm not sure that minimumVersion makes sense for an optionalUpdate since the optional update refers to a specific version, whereas the requiredUpdate refers to a range.

Maybe we should use a specific version string for optionalUpdate and use a Gemfile-style version for requiredUpdate: "version": "< 3.9.0"

from gandalf.

stkent avatar stkent commented on July 24, 2024

@btkelly but those versions don't represent the same thing, so using the same model could get confusing in code. How about something like:

{
    "android": {
        "highPriorityAlert": {
            "message": "We are currently performing server maintenance. Please try again later.",
            "appLockout": true
        },
        "versionInformation": {
            "latestVersionCode": 23,
            "oldestAllowedVersionCode": 12,
        },
        "optionalUpdateMessage": "A new version of the application is available, please click below to update to the latest version.",
        "forcedUpdateMessage": "A new version of the application is available and is required to continue, please click below to update to the latest version."
    }
}

from gandalf.

dtrenz avatar dtrenz commented on July 24, 2024

I like the idea of referring to everything as alerts, but I have a few preferences:

  • The name transitoryAlert isn't very intuitive, for me.
  • Isn't oldestAllowedVersionCode the same as minimumRequiredVersion? I feel like "minimum required" is more commonly used phrasing than "oldest allowed."
  • On the hangout, we discussed that an optional update alert might not be for the current or latest version, so latestVersionCode wouldn't really work in that scenario.

I'm starting to think that we should table the design/structure of the general/transitory alert until we get to the next milestone.

from gandalf.

stkent avatar stkent commented on July 24, 2024
  1. Agreed, I ninja-edited to highPriorityAlert immediately after replying.
  2. Yes, minimumRequiredVersion is a good substitute there!
  3. When might we not want to alert the user of the latest available version?

from gandalf.

btkelly avatar btkelly commented on July 24, 2024

I'm up for adjustments and I'll do what everyone thinks but I think I'm in favor of the first posting of the structure still, with only some variable name changes.

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024

I actually prefer the original JSON setup. I see the two blocks as just defining slightly different boundaries, for lack of a better term. minimumVersion (required is implied here yes?) is the hard boundary, optionalVersion is the soft boundary. They both have a message, the logic behind interpreting them is just slightly different.

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024
{
    "android": {
        "alert": {
            "message": "We are currently performing server maintenance. Please try again later.",
            "blocking": true
        },
        "optionalVersion": {
            "versionCode": 4,
            "message": "A new version of the application is available, please click below to update to the latest version."
        },
        "minimumVersion": {
            "versionCode": 2,
            "message": "A new version of the application is available and is required to continue, please click below to update to the latest version."
        }
    }
}

Imagine in the above that the current store version is 5, in the case of someone having 4, they wouldn't actually get bothered to update to 5.

from gandalf.

stkent avatar stkent commented on July 24, 2024

You guys do what you gotta do!

thatll-work

from gandalf.

dtrenz avatar dtrenz commented on July 24, 2024

So, are we going to use version code for Android and version string for iOS?

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024

I thought build number for iOS

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024

well... I dunno I guess we could use strings for the version in iOS and ints for the version in Android, but that could get confusing? Strings for both?

from gandalf.

btkelly avatar btkelly commented on July 24, 2024

I like keeping them the same, my vote is strings for both

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024

yep I'm cool with that

from gandalf.

btkelly avatar btkelly commented on July 24, 2024

OK so, are we cool with this, at least for milestone 1 (next milestone has custom json parsing)?

{
    "android": {
        "alert": {
            "message": "We are currently performing server maintenance. Please try again later.",
            "blocking": true
        },
        "optionalUpdate": {
            "optionalVersion": "3.9.0",
            "message": "A new version of the application is available, please click below to update to the latest version."
        },
        "requiredUpdate": {
            "minimumVersion": "3.8.0",
            "message": "A new version of the application is available and is required to continue, please click below to update to the latest version."
        }
    }
}

from gandalf.

jsibbold avatar jsibbold commented on July 24, 2024

👍

from gandalf.

dtrenz avatar dtrenz commented on July 24, 2024

:shipit:

from gandalf.

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.