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

CLDR Ticket #11420(design)

Opened 3 months ago

Last modified 4 weeks ago

Fix inconsistent methods of getting Bailey value in Survey Tool

Reported by: tbishop Owned by: tbishop
Component: surveytool-other Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

ticket:11299

Description

There are (at least) two different methods of getting the Bailey value. The two disagree in the case of

https://st.unicode.org/cldr-apps/v#/gsw_FR/Languages_A_D/3f16ed8804cebb7d

The VoteResolver gets "Veräifachts Chineesisch" while the DataRow inheritedValue gets "Chineesisch (Veräifachti Chineesischi Schrift)".

Attachments

Change History

comment:1 Changed 3 months ago by tbishop

A VoteResolver gets the Bailey value this way:

            if (status.pathWhereFound.equals(path)) {
                // we found it on the same path, so no aliasing
                // for that case, it is safe to use the parent's value
                if (fallbackParent == null) {
                    // we are in root. 
                    baileyValue = diskData.getBaileyValue(path, null, null);
                } else {
                    baileyValue = fallbackParent.getStringValue(path);
                }
            } else {
                // the path changed, so use that path to get the right value
                // from the *current* file (not the parent)
                r = getResolverInternal(peekXpathData(status.pathWhereFound), status.pathWhereFound, r);
                baileyValue = r.getWinningValue();
                r.clear(); // clear it again
            }

A DataRow gets the Bailey value (a.k.a. inheritedValue) this way:

           Output<String> inheritancePathWhereFound = new Output<String>(); // may become pathWhereFound
            Output<String> localeWhereFound = new Output<String>(); // may be used to construct inheritedLocale
            inheritedValue = ourSrc.getConstructedBaileyValue(xpath, inheritancePathWhereFound, localeWhereFound);

See 11299 for earlier info about this bug.

Another bug involves the same row: "Jump to Original" in the Info Panel links to the same page; child equals parent.

comment:2 Changed 4 weeks ago by mark

  • Milestone changed from UNSCH to to-assess

comment:3 Changed 4 weeks ago by tbishop

The bugs here, and questions they raise, may be significant for 11103 "vote status info".

comment:4 Changed 4 weeks ago by tbishop

  • Owner changed from anybody to tbishop
  • Status changed from new to design

comment:5 Changed 4 weeks ago by tbishop

Changed to design, per today's meeting.

Question: which is correct in this case, VoteResolver "Veräifachts Chineesisch" or DataRow inheritedValue "Chineesisch (Veräifachti Chineesischi Schrift)"?

View

Add a comment

Modify Ticket

Action
as design
Author


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

 
Note: See TracTickets for help on using tickets.