[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #5884(accepted tools)

Opened 4 years ago

Last modified 20 months ago

API for survey tool URLs

Reported by: srl Owned by: srl
Component: survey Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

ticket:6322

ticket:6304

ticket:5054

Description

See r8442

  • Add an API in core that generates a URL, given a locale and optional xpath
  • use CLDRConfig, with a default prefix of http://st.unicode.org/cldr-apps ..
    • so it could be overridden with -D
  • SurveyTool at runtime will change the config to reflect runtime reality such as /smoketest/...

Callsites to fix:

  • SurveyTool internally will use the same API
  • vettingviewer
  • tests such as r8442
  • examples

typical URL format will be:

siteprefix/v/#/locale//xpath_stringid_in_hex

...where siteprefix is default http://st.unicode.org/cldr-apps but changed to /cldr-apps or /smoketest by ST

Attachments

Change History

comment:1 Changed 4 years ago by emmons

  • Status changed from new to assigned
  • Component changed from unknown to tools
  • Priority changed from assess to minor
  • Milestone changed from UNSCH to future
  • Owner changed from anybody to srl
  • Type changed from unknown to enhancement

comment:2 Changed 4 years ago by srl

  • Status changed from assigned to accepted
  • Milestone changed from future to 25dsub

comment:3 Changed 4 years ago by mark

  • Milestone changed from 25dsub to 24dvet

Here is where the API needs fixing:
PathHeader

public static String getUrl(String baseUrl, String locale, String path) {

return baseUrl + "?_=" + locale + "&strid=" + StringId.getHexId(path);

}


eg http://st.unicode.org/cldr-apps/survey?_=fr&x=Locale%20Name%20Patterns
public static String getPageUrl(String baseUrl, String localeId, PageId subsection) {

return baseUrl + "?_=" + localeId + "&x=" + subsection;

}

comment:4 Changed 4 years ago by srl

  • Xref set to 6322

see ticket:6322 - x=Numbers doesn't work anymore

comment:5 Changed 4 years ago by srl

  • Milestone changed from 24dvet to 25design

comment:6 Changed 4 years ago by srl

  • Xref changed from 6322 to 6322 6304

also revisit apis in ticket:6304

comment:7 Changed 4 years ago by srl

  • Xref changed from 6322 6304 to 6322 6304 5054

also urls in r8442

comment:8 Changed 3 years ago by emmons

  • Milestone changed from 25design to 25rc

Moving all 25design to 25rc. If you plan to complete this item in the 25M1 time frame, please change the milestone to 25M1.

comment:9 Changed 3 years ago by srl

  • Milestone changed from 25rc to 26dsub

rolling

comment:10 Changed 3 years ago by srl

  • Milestone changed from 26dsub to 26dvet

comment:11 Changed 3 years ago by srl

Basically did this with r10549

TODO get additional components to use the new URL. Get rid of PathHeader.BaseUrl and everything else that assumes the base url ends with "/survey".

comment:12 Changed 3 years ago by srl

  • Milestone changed from 26dvet to 27dsub

roll

comment:13 Changed 3 years ago by markus

  • Phase set to dsub
  • Milestone changed from 27dsub to 27

comment:14 Changed 2 years ago by srl

  • Milestone changed from 27 to 28

roll

comment:15 Changed 2 years ago by markus

  • Type changed from enhancement to tools
  • Component changed from tools to unknown

comment:16 Changed 22 months ago by emmons

  • Component changed from unknown to survey

comment:17 Changed 22 months ago by emmons

  • Milestone changed from 28 to 29

Moving all survey related to 29dsub

comment:18 Changed 20 months ago by emmons

  • Milestone changed from 29 to upcoming

Auto move of all 29 -> upcoming

View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.