Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Intro Dev #90

Merged
merged 13 commits into from
Nov 4, 2023
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

# review when someone opens a pull request.

* @danpercic86
* @VeniaminBalan
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
context: .
secrets: GIT_AUTH_TOKEN=${{ secrets.CR_PAT }}
push: true
tags: ghcr.io/dsc-upt/gdsc-backend-${{ env.BRANCH }}:latest
tags: ghcr.io/gdsc-upt/gdsc-backend-${{ env.BRANCH }}:latest

deploy:
needs: [ build ]
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY --from=build-env /app/out .

COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod +x /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
ENTRYPOINT ["docker-entrypoint.sh"]

# Link image with github repo
LABEL org.opencontainers.image.source=https://github.com/dsc-upt/gdsc-backend
LABEL org.opencontainers.image.source=https://github.com/gdsc-upt/gdsc-backend
128 changes: 0 additions & 128 deletions GdscBackend.Tests/AuthTests.cs

This file was deleted.

4 changes: 1 addition & 3 deletions GdscBackend.Tests/ContactControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using System.Linq;
using AutoMapper;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.RequestModels;
using GdscBackend.Features.Contacts;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using GdscBackend.Utils.Services;
Expand Down
5 changes: 2 additions & 3 deletions GdscBackend.Tests/EventsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
using System.Linq;
using AutoMapper;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.RequestModels;
using GdscBackend.Features.Events;
using GdscBackend.Features.FIles;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
4 changes: 1 addition & 3 deletions GdscBackend.Tests/ExampleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
using System.Linq;
using FactoryBot;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.Models.Enums;
using GdscBackend.Features.Examples;
using GdscBackend.Tests.Mocks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand Down
3 changes: 1 addition & 2 deletions GdscBackend.Tests/FilesControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
using System.IO;
using System.Linq;
using System.Text;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.Features.FIles;
using GdscBackend.Tests.Mocks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand Down
4 changes: 1 addition & 3 deletions GdscBackend.Tests/MembersControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using AutoMapper;
using FactoryBot;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.RequestModels;
using GdscBackend.Features.Members;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
5 changes: 1 addition & 4 deletions GdscBackend.Tests/MenuItemsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
using AutoMapper;
using FactoryBot;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.Models.Enums;
using GdscBackend.RequestModels;
using GdscBackend.Features.MenuItems;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
2 changes: 1 addition & 1 deletion GdscBackend.Tests/Mocks/TestDbContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using GdscBackend.Common.Models;
using GdscBackend.Database;
using GdscBackend.Models;
using Microsoft.EntityFrameworkCore;

namespace GdscBackend.Tests.Mocks;
Expand Down
2 changes: 1 addition & 1 deletion GdscBackend.Tests/Mocks/TestWebhookService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GdscBackend.Models;
using GdscBackend.Features.Contacts;
using GdscBackend.Utils.Services;
using Xunit.Abstractions;

Expand Down
5 changes: 1 addition & 4 deletions GdscBackend.Tests/SettingsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
using AutoMapper;
using FactoryBot;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.Models.Enums;
using GdscBackend.RequestModels;
using GdscBackend.Features.Settings;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
5 changes: 2 additions & 3 deletions GdscBackend.Tests/TeamsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
using AutoMapper;
using FactoryBot;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.RequestModels;
using GdscBackend.Features.Members;
using GdscBackend.Features.Teams;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
4 changes: 1 addition & 3 deletions GdscBackend.Tests/TechnologiesControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using System.Linq;
using AutoMapper;
using Faker;
using GdscBackend.Controllers.v1;
using GdscBackend.Database;
using GdscBackend.Models;
using GdscBackend.RequestModels;
using GdscBackend.Features.Technologies;
using GdscBackend.Tests.Mocks;
using GdscBackend.Utils.Mappers;
using Microsoft.AspNetCore.Http;
Expand Down
2 changes: 2 additions & 0 deletions GdscBackend.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gdsc/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
7 changes: 0 additions & 7 deletions GdscBackend/Auth/LoginResponse.cs

This file was deleted.

12 changes: 0 additions & 12 deletions GdscBackend/Auth/LoginViewModel.cs

This file was deleted.

16 changes: 0 additions & 16 deletions GdscBackend/Auth/RegisterViewModel.cs

This file was deleted.

7 changes: 0 additions & 7 deletions GdscBackend/Auth/Role.cs

This file was deleted.

7 changes: 0 additions & 7 deletions GdscBackend/Auth/User.cs

This file was deleted.

9 changes: 0 additions & 9 deletions GdscBackend/Auth/UserViewModel.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GdscBackend.Models;
namespace GdscBackend.Common.Models;

public interface IModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace GdscBackend.Models;
namespace GdscBackend.Common.Models;

public abstract class Model : IModel
{
public string Id { get; set; }

Check warning on line 5 in GdscBackend/Common/Models/Model.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Id' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public DateTime Created { get; set; }
public DateTime Updated { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions GdscBackend/Common/RequestModels/Request.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace GdscBackend.Common.RequestModels;

public class Request
{
}
Loading
Loading