Comments (5)
Problem found. The awards list populator is setting the adapter keys to a
combination of the event key and the award name, not the team key like I
was expecting. I'll fix this later today.
On May 15, 2014 4:19 AM, "Bryce Matsuda" [email protected] wrote:
After pulling the latest master, I was doing my usual stress tests when I
hit an NPE crash whenever I tried viewing team info from the Awards tab,
which had never happened beforehand. Adding null checks didn't seem to
work, but then I noticed something odd in the title/header bar after a
couple of crashes.[image: screenshot_2014-05-15-01-41-37]https://cloud.githubusercontent.com/assets/6787907/2982056/8d37be06-dc0f-11e3-9947-9252b53f3661.png
I checked logcat and found in each crash DataManager trying to load the
URL http://thebluealliance.com/api/v2/team/[award key] (e.g:
http://thebluealliance.com/api/v2/team/2014casb_Regional Chairman's Award)Full logcat: http://pastebin.com/QfXU8yDE
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62
.
from the-blue-alliance-android.
Whoops. Wonder how I missed that one. I guess I should work on tests today
On May 15, 2014 8:14 AM, "Nathan Walters" [email protected] wrote:
Problem found. The awards list populator is setting the adapter keys to a
combination of the event key and the award name, not the team key like I
was expecting. I'll fix this later today.
On May 15, 2014 4:19 AM, "Bryce Matsuda" [email protected]
wrote:After pulling the latest master, I was doing my usual stress tests when
I
hit an NPE crash whenever I tried viewing team info from the Awards tab,
which had never happened beforehand. Adding null checks didn't seem to
work, but then I noticed something odd in the title/header bar after a
couple of crashes.[image: screenshot_2014-05-15-01-41-37]<
https://cloud.githubusercontent.com/assets/6787907/2982056/8d37be06-dc0f-11e3-9947-9252b53f3661.png>I checked logcat and found in each crash DataManager trying to load the
URL http://thebluealliance.com/api/v2/team/[award key] (e.g:
http://thebluealliance.com/api/v2/team/2014casb_Regional Chairman's
Award)Full logcat: http://pastebin.com/QfXU8yDE
—
Reply to this email directly or view it on GitHub<
https://github.com/the-blue-alliance/the-blue-alliance-android/issues/62>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-43201841
.
from the-blue-alliance-android.
Wait - there isn't always a team key associated with an award (some, like Volunteer of the Year, aren't associated with teams). Do we want to rely on something like that for a key?
The way TBA does handles award keys is <event-key>_<award-enum>
. I think we should do it this way as well, but the enum isn't exposed to the API (forgot about those when I added it). I'll add it in though.
from the-blue-alliance-android.
Volunteer of the year wouldn't have to react to a click because there's no
associated team to display. In that case, just set the key to an empty
string and check for that in the click listener. Afaik the only place we
use keys is the click listener so that should be safe.
On May 15, 2014 11:29 AM, "Phil Lopreiato" [email protected] wrote:
Wait - there isn't always a team key associated with an award (some, like
Volunteer of the Year, aren't associated with teams). Do we want to rely on
something like that for a key?The way TBA does handles award keys is _. I think we should do it this way
as well, but the enum isn't exposed to the API (forgot about those when I
added it). I'll add it in though.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-43232843
.
from the-blue-alliance-android.
Ah, you're right. That's a good point. Just the team key should be fine,
then
On Thu, May 15, 2014 at 12:33 PM, Nathan Walters
[email protected]:
Volunteer of the year wouldn't have to react to a click because there's no
associated team to display. In that case, just set the key to an empty
string and check for that in the click listener. Afaik the only place we
use keys is the click listener so that should be safe.
On May 15, 2014 11:29 AM, "Phil Lopreiato" [email protected]
wrote:Wait - there isn't always a team key associated with an award (some,
like
Volunteer of the Year, aren't associated with teams). Do we want to rely
on
something like that for a key?The way TBA does handles award keys is _. I think we should do it this
way
as well, but the enum isn't exposed to the API (forgot about those when
I
added it). I'll add it in though.—
Reply to this email directly or view it on GitHub<
https://github.com/the-blue-alliance/the-blue-alliance-android/issues/62#issuecomment-43232843>.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-43233334
.
from the-blue-alliance-android.
Related Issues (20)
- App switches to dark theme after opening settings
- Week 1 events tab displays as "Preseason Events"
- Event codes with numbers have numbers stripped from notification titles HOT 3
- Performance improvement suggestion
- Unable to download data HOT 5
- Android app icon guidelines have changed HOT 1
- If a match is delayed, the match time isn't updated HOT 1
- CCWM calculations are flawed
- Stuck on welcome screen (BETA) HOT 5
- Setup not persisting HOT 2
- Errors on Notifications on Android S+
- Team@Event Clicks Are Wonky
- Notifications Have Empty Icons on Some Devices HOT 2
- Button to cache available team avatars
- No offseason Events HOT 1
- 16 x "Team 971 CC Q44 Results" notifications, 14 x "[Team 971] CC Q11 Results", ... 108 total HOT 4
- App can not open a website links HOT 2
- [2023] Updates for Double Elims
- Match times are different for Android vs Apple HOT 1
- [BUG] Event selection not going to the correct event HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the-blue-alliance-android.