Shemiroth
Shemiroth
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
But yeah I do 100% need versioning 😄
21 replies
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
There is not going to be that many endpoints really, 90% will be GET too, because it's really just for them to see the info we have.
21 replies
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
GET: /items?page=2&perPage=25 is the one I'd go for
21 replies
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
ah yes ofc.
21 replies
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
and is there a specific pattern I should follow? I guess items/get for all and items/get/{id} for details of one?
21 replies
CC#
Created by Shemiroth on 12/11/2023 in #help
Creating a new API
Ah I see, well that's how I done the first one so on the right track then 😄 Are there any fast track ways of doing it? Building endpoints is quite a tedious and repetitive job 😩
21 replies
CC#
Created by Shemiroth on 6/19/2023 in #help
❔ Versioning for apps
I was thinking that the Jira releases will include the tasks that were assigned to them. So that would be the change log or does it have be more focused on the code?
10 replies
CC#
Created by Shemiroth on 6/19/2023 in #help
❔ Versioning for apps
I could publish a release now that would only include removing a input from a form 🤔 that's not a bug fix but seems more minor than adding a page
10 replies
CC#
Created by Shemiroth on 6/19/2023 in #help
❔ Versioning for apps
Makes sense yeah. So like a new page that does not affect anything else would just be a minor version. I can't think of much that we do that is incompatible tbh. Most stuff is pretty standalone.
10 replies
CC#
Created by Shemiroth on 3/26/2023 in #help
❔ Optimizing code
It's an override from a library so I can't really change it
36 replies
CC#
Created by Shemiroth on 3/26/2023 in #help
❔ Optimizing code
So then this is fine?
protected async override void OnInitialActivate()
{
var timer = new Stopwatch();
timer.Start();

if (!_settingsService.Settings.Any())
{
await _settingsService.Initialise();
}

try
{
_ = _fileService.LoadUserImages();
}
catch (Exception ex)
{
Log.Error("Failed to load user images", ex);
}

ShowDashboardPanel();
_ = ActionPanel.Initialise();

timer.Stop();
Trace.WriteLine(timer.Elapsed.ToString());
}
protected async override void OnInitialActivate()
{
var timer = new Stopwatch();
timer.Start();

if (!_settingsService.Settings.Any())
{
await _settingsService.Initialise();
}

try
{
_ = _fileService.LoadUserImages();
}
catch (Exception ex)
{
Log.Error("Failed to load user images", ex);
}

ShowDashboardPanel();
_ = ActionPanel.Initialise();

timer.Stop();
Trace.WriteLine(timer.Elapsed.ToString());
}
36 replies
CC#
Created by Shemiroth on 3/26/2023 in #help
❔ Optimizing code
I was thinking that I don't want to await it though, I just want it to run in the background and not block execution
36 replies
CC#
Created by Shemiroth on 3/26/2023 in #help
❔ Optimizing code
Yes, I used the profiler earlier and found some methods that are slow. My first example about the loop of API calls. Was looping 330 objects 😩 I filtered the data to only get the relevant stuff and that helped. Just wondering if Parallel.ForEach is a good idea too.
36 replies
CC#
Created by Shemiroth on 11/29/2022 in #help
✅ Disabling new Visual Studio tips
but yeah I have disabled it now. Thanks
9 replies
CC#
Created by Shemiroth on 11/29/2022 in #help
✅ Disabling new Visual Studio tips
Suggestions are awful
9 replies
CC#
Created by Shemiroth on 11/29/2022 in #help
✅ Disabling new Visual Studio tips
Not anymore 😅
9 replies
CC#
Created by Shemiroth on 8/20/2022 in #help
Can I have a `ListThingT ` where T is different for each item?
True, not much need for a server and db
45 replies
CC#
Created by Shemiroth on 8/20/2022 in #help
Can I have a `ListThingT ` where T is different for each item?
Sounds good. I am off to bed now so will have a look some more tomorrow. Thanks for your advice 🙂
45 replies
CC#
Created by Shemiroth on 8/20/2022 in #help
Can I have a `ListThingT ` where T is different for each item?
Yeah that's the kind of thing I am thinking too
45 replies
CC#
Created by Shemiroth on 8/20/2022 in #help
Can I have a `ListThingT ` where T is different for each item?
I want the user to be able to create their own entity types and the properties.
45 replies