GithubHelp home page GithubHelp logo

Comments (4)

tzachi-dar avatar tzachi-dar commented on September 6, 2024

do you know in what commit did it happen?

Thanks
Tzachi

On Wed, Dec 2, 2015 at 11:31 PM, Johan Degraeve [email protected]
wrote:

In previous versions there was a default text shown :
https://yourpassphrase@{YOUR-SITE}.azurewebsites.net/api/v1/

commit 882ef1e
882ef1e
It's not shown anymore
See attached screenshot.
[image: screenshot_2015-12-02-22-18-50]
https://cloud.githubusercontent.com/assets/13840461/11544850/6e3351d4-9944-11e5-84cf-a91fae42ffd5.png


Reply to this email directly or view it on GitHub
#195
.

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024
            <SwitchPreference
                android:title="@string/pref_title_api_enabled"
                android:key="cloud_storage_api_enable"
                android:disableDependentsState="false"
                android:summary="@string/pref_summary_api_enabled">
            </SwitchPreference>
            <EditTextPreference
                android:dependency="cloud_storage_api_enable"
                android:title="@string/pref_title_api_url"
                android:key="cloud_storage_api_base"
                android:dialogTitle="@string/pref_dialog_api_url"
                android:dialogMessage="@string/pref_message_api_url"
                android:defaultValue="@string/pref_default_api_url"
                android:inputType="textUri">
            </EditTextPreference>
    <string name="pref_default_api_url">https://yourpassphrase@{YOUR-SITE}.azurewebsites.net/api/v1/</string>

It looks like it is still there.
But I guess this happens in migrateToNewStyleRestUris() in IdempotentMigrations. Do you think we can just shield the last line and just edit the preference, if the String is non-empty?

Another question arises: Is the Home-Activity a good place to trigger the migrations?
Every time someone opens home it intends to migrate the URLs and the alarm levels.

from xdrip-experimental.

JohanDegraeve avatar JohanDegraeve commented on September 6, 2024

@tzachi-dar it was in 882ef1e
but maybe it was already there before.

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024

This should fix it: #199
Without a setting, the empty String was written into it, every time "home" was called.

from xdrip-experimental.

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.