Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| foreach (var ngo in ngosToAddAsMonitoringNgos) | ||
| { | ||
| var monitoringNgo = electionRound.AddMonitoringNgo(ngo); | ||
| monitoringNgos.Add(monitoringNgo); | ||
| context.MonitoringNgos.Add(monitoringNgo); | ||
| } |
Check notice
Code scanning / CodeQL
Missed opportunity to use Select
| foreach (var ngo in ngosToAddAsMonitoringNgos) | ||
| { | ||
| var monitoringNgo = coalition.ElectionRound.AddMonitoringNgo(ngo); | ||
| coalitionMembers.Add(monitoringNgo); | ||
| context.MonitoringNgos.Add(monitoringNgo); | ||
| } |
Check notice
Code scanning / CodeQL
Missed opportunity to use Select
| && x.MonitoringNgo.NgoId == req.NgoId | ||
| && x.Id == req.FormId) | ||
| .FromSqlInterpolated($""" | ||
| select f.* from "GetAvailableForms"({req.ElectionRoundId}, {req.NgoId}, {req.DataSource.ToString()}) af |
Check notice
Code scanning / CodeQL
Redundant ToString() call
| """; | ||
|
|
||
| var queryArgs = new { electionRoundId = req.ElectionRoundId, ngoId = req.NgoId }; | ||
| IEnumerable<MonitoringObserverExportModel> monitoringObservers = []; |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
| PresignedUrl = result!.Url, | ||
| MimeType = attachment.MimeType, | ||
| UrlValidityInSeconds = result.UrlValidityInSeconds, | ||
| UrlValidityInSeconds = result.UrlValidityInSeconds |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null
|
|
||
| public CoalitionScenarioBuilder WithQuickReport(ScenarioObserver observer, ScenarioPollingStation pollingStation) | ||
| { | ||
| var observerClient = ParentBuilder.WithQuickReport(observer, pollingStation); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable
| @@ -24,6 +24,6 @@ | |||
| new List<object[]> | |||
| { | |||
| new object[] { Guid.Empty }, | |||
| new object[] { null as Guid? }, | |||
| new object[] { null as Guid? } | |||
Check warning
Code scanning / CodeQL
Useless upcast
|
|
||
| {isFiltering && ( | ||
| {filtersExpanded && ( |
Check warning
Code scanning / CodeQL
Useless conditional
* Rename column in form templates (#809) * Reset pageNumber param on filtering (#819) * fix: make dropdown menus scrollable * fix: truncate overflowing table columns * Squashed commit of the following: commit 742f250 Author: imdeaconu <imdeaconu@gmail.com> Date: Wed Sep 11 19:54:55 2024 +0300 add read notification checkmark commit ea11fa0 Author: imdeaconu <imdeaconu@gmail.com> Date: Wed Sep 11 19:54:30 2024 +0300 add read notification column * Squashed commit of the following: commit d8833dc Author: imdeaconu <imdeaconu@gmail.com> Date: Fri Sep 13 13:29:31 2024 +0300 WIP: add selector functionality commit 3608c0e Author: imdeaconu <imdeaconu@gmail.com> Date: Fri Sep 13 10:00:05 2024 +0300 WIP: create new tags input * chore: remove unused import * chore: delete duplicated / unused classes * feature: add searching to MonitoringObserversTagFilter * chore: update config files * Revert "[NGO Admin] Rewrite the tag selector component (#675)" This reverts commit 2ad0e90. * Merge branch 'main' of https://github.com/commitglobal/votemonitor into commitglobal-main * reset page numbr to 1 on filtering * Update Endpoint.cs (#820) * Update Endpoint.cs (#821) * Release v0.2.33 (#822) * NGO coalitions (#823) * Add coalitions * Fix form template name, fix get form by id and form submissions * fix selects * Add form access ui * Remove unused columns * Fix get filters * Add data source filters for submissions * Fix list submissions * fix queries * fixes and tests * cleanup, fix list by observer endpoint add tests * refactor fix tests * fix tests and selects * fix queries for get by id and get aggregated * Fix quick reports * implement coalition data * add is own observer and filters on qr * Fix failing tests * fix ui build * fix statistics * fix issues * fix tests * Release v0.2.34 (#824) * Improve UX for election round selector (#825) * Fix export data as coalition member (#826) * Update locals.tf (#827) * Fix sendind notifications (#828) * Release v0.2.36 (#829) * Fix sending of notifications (#830) * Release v0.2.37 (#831) * Feature/rework header (#833) * Rework header * Fix bug with invitations * Fix stuff * Release v0.2.38 (#834) * add readonly view (#835) * Release v0.2.39 (#836) * Fix number of targeted observers (#837) * Release v0.2.40 (#838) * Feature/cleanup (#839) * Cleanup and improvements * move form submissions to /responses/form-submissions * add before load for all auth routes * Rework and cleanup observers import * cleanup --------- Co-authored-by: Iulian Deaconu <imdeaconu@gmail.com>
No description provided.