Skip to content

Commit

Permalink
Merge pull request #90 from gdsc-upt/main
Browse files Browse the repository at this point in the history
Dev Intro Dev
  • Loading branch information
VeniaminBalan authored Nov 4, 2023
2 parents 1cb3d7c + a4d4612 commit cf6ece4
Show file tree
Hide file tree
Showing 89 changed files with 2,666 additions and 901 deletions.
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,4 +1,4 @@
namespace GdscBackend.Models;
namespace GdscBackend.Common.Models;

public abstract class Model : IModel
{
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

0 comments on commit cf6ece4

Please sign in to comment.