Comments (13)
?
from kag-app.
I still dont understand what you mean here
from kag-app.
Unterstufen people are not permitted to see the RPlan.
-> Hide the RPlan or show a message
from kag-app.
Problem: It takes long to load that information. It would be better to cache the user group so that it does not download this information every time.
@strifel Please implement the caching mechanic sometime (before the release).
from kag-app.
Will close this issue.
from kag-app.
I think the Method isn't even async. Let me check
(EDIT:
Line 121 in a4e4b4e
from kag-app.
But how can I access this without using an async function?
The only way I see is:
var groups = (await KAGApp.api.getAPIRequest(APIAction.GET_GROUPS)).getGroups();
I can't delete the await
from kag-app.
That's true but in this case it should take 0 seconds.
If this has to be used in a not async context, I have to fix this. Does it need to be?
from kag-app.
Yes, it needs to be synced. Right now it takes 1 second to complete and the build method gets called before initState() is completed. -> It shows an error while initState() isn't completed.
I will work on this issue when the method is sync.
from kag-app.
The method getAPIRequestSync does not work properly. It checks:
if (_isLogInNeeded(action) && action != APIAction.GET_USER_INFO && action != APIAction.GET_USERNAME)
So: For getGroups login is needed so the task can't be performed synchronously.
@strifel Please update the condition here. For now isLoginNeeded for getGroups is changed to false.
from kag-app.
The statement is completly fine.
from kag-app.
No. The reason requestSync was created was to be able to get the Groups synchronously. With your implementation/statement you can‘t access groups synchronously.
getGroups only works when the user is logged in -> either isLoginNeeded for getGroups needs to be false (which it doesn‘t) or the statement must be updated
from kag-app.
Oh. Maybe I had a little typo....
from kag-app.
Related Issues (20)
- Sortierung der Frontpage Artikel per priority
- Mail Seite für web schöner machen
- Scrollbare Login Elemente wenn der Bildschirm sehr klein ist
- Vertretungsart wird in RPlanDetailView abgeschnitten
- Mail Prompt schließt sich nicht automatisch nach mail Erstellung
- UserPreloadCache wird nicht geleert bei Logout
- Homework Funktion implementieren
- Timer Animation entfernen HOT 1
- Option hinzufügen mit einer Push Benachrichtung einen Artikel zu öffnen
- Die Schrift "Es gibt derzeit am ?, dem ?.?.?, keine Vertretung für dich Centern
- Keinen Extra App Type für Webmail haben
- Navbar überarbeiten
- Feature-Krankmeldungsservice HOT 2
- Feature-Kontaktseite
- Datenschutzerklärung falsch verlinkt.
- Impressum und Datenschutz fehlt
- "Passwort vergessen" muss umgeleitet werden
- Rework Calendar HOT 1
- App bleibt manchmal im ladebildschirm hängen HOT 1
- Ferien im Kalender anzeigen
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 kag-app.