GithubHelp home page GithubHelp logo

Test button about smssync HOT 5 CLOSED

ushahidi avatar ushahidi commented on July 28, 2024
Test button

from smssync.

Comments (5)

olliebennett avatar olliebennett commented on July 28, 2024

In order to test the setup, I simply send myself a SMS message, and then monitor what request the server receives.

I agree that a test button would be useful, but would also add complexity and it could be unintuitive for the user as to what the button really does.

from smssync.

eyedol avatar eyedol commented on July 28, 2024

When a test button is hit, it should send a ping to the configured URL. Upon successful ping, the test should expect a JSON format as below

{
    payload: {
        success: "true"
    }
}

Or

{
    payload: {
        success: "false"
    }
}

We can safely assume the SYNC URL is properly configured.

Return a Success or Failure depending on the status of the test.

from smssync.

mitra42 avatar mitra42 commented on July 28, 2024

I think Github failed to post my comment - apologies if there is a delay and this gets duplicated.

I think that we want more from the test than this. This is commonly going to be used to check the phone, and also for diagnostics to split the problem between Mobile <> Smsync and SMSsync <> Server
The human intelligence could be either end - someone in the field trying to figure out what is working, or a support person at the server giving instructions to a non-smssync literate person in the field.

Ideally it should
a) let the holder of the phone know its configured correctly
b) let them know the server is working properly.
c) If forwarded to a support person, provide useful information to help diagnose problems.

I suggest that the message should be a correctly formatted SMS request - i.e. json to the server, and that the settings AND the phone number of the phone - should be packed into it (maybe also the location) . In case (c) this could be passed onto the support person who can check the settings, and confirm that for example in Peru the smssync gateway sits at phone number 123456

The response should also look like a SMS message - it could be human readable (allowing instructions on changing settings) or any server diagnostic message (for case b). Maybe it should be packaged so its destination phoen number is the one in the request packet).

I don't think I'm complicating it too much ?

from smssync.

eyedol avatar eyedol commented on July 28, 2024

@mitra42 what you've said above is more like what we want to do with the Log viewer feature. See #97

This issue is going to fix scenario a)

from smssync.

mitra42 avatar mitra42 commented on July 28, 2024

I don't think these are the same thing at all - #97 doesn't seem to solve any of a,b or c - maybe c, but only then if the log contains enough info for hte support person to diagnose the problem.

from smssync.

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.