Skip to content

Commit

Permalink
Merge branch 'documentation' synch giltLab and gitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
holdan-8 committed Mar 7, 2024
2 parents 953686f + 1004581 commit 27664cf
Show file tree
Hide file tree
Showing 8 changed files with 309 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The crawler will just update the data, starting with the oldest timestamp.

## Database Stucture

![System Diagram](/assets/images/DBStructure.png)
![System Diagram](/assets/images/DBStructure.png)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class RepositoriesRankingComponent implements OnInit {
['logo', '', false, 'img'],
['institution', 'Institution', false, 'string'],
['organization', 'GitHub Organization', false, 'string'],
// ['last_years_commits', 'Commits last year', false, 'number'],
['last_years_commits', 'Commits last year', false, 'number'],
['comments', 'Comments', false, 'number'],
['issues_all', 'Issues', false, 'number'],
['pull_requests_all', 'Pull requests', false, 'number'],
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export type User = {
location: string;
created_at: string;
updated_at: string;
contributions_sum: number;
public_repos: number;
public_gists: number;
followers: number;
Expand Down
3 changes: 2 additions & 1 deletion oss-api/src/data/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class DataService {

private async handleRepositories(repositoryFileNames: string[]) {
log('Handling all repositories');
let repositories: RepoData[] = [];
const repositories: RepoData[] = [];
for (const repofileName of repositoryFileNames) {
log(repofileName);
const repoData: string = this.readFile(
Expand Down Expand Up @@ -227,6 +227,7 @@ export class DataService {
company: contributorData.company,
email: contributorData.email,
twitter_username: contributorData.twitter_username,
contributions_sum: contributorData.contributions_sum,
location: contributorData.location,
created_at: new Date(contributorData.created_at),
updated_at: new Date(contributorData.updated_at),
Expand Down
5 changes: 5 additions & 0 deletions oss-api/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface GithubUser {
hireable: boolean;
bio: string;
twitter_username: string;
contributions_sum: number;
public_repos: number;
public_gists: number;
followers: number;
Expand Down Expand Up @@ -1632,6 +1633,7 @@ export interface GithubOrganisation {
is_verified: true;
has_organization_projects: true;
has_repository_projects: true;
contributions_sum: number;
public_repos: number;
public_gists: number;
followers: number;
Expand Down Expand Up @@ -1900,6 +1902,7 @@ export interface Contributor {
location: string;
created_at: Date;
updated_at: Date;
contributions_sum: number;
public_repos: number;
public_gists: number;
followers: number;
Expand Down Expand Up @@ -1950,6 +1953,7 @@ export interface User {
company: string;
email: string | null;
twitter_username: string | null;
contributions_sum: number | null;
location: string;
created_at: Date;
updated_at: Date;
Expand Down Expand Up @@ -2264,6 +2268,7 @@ export type UserSummary = {
company: string;
email: string;
twitter_username: string;
contributions_sum: number;
location: string;
created_at: string;
updated_at: string;
Expand Down
1 change: 1 addition & 0 deletions oss-api/src/mongo-db/mongo-db.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ export class MongoDbService implements OnApplicationShutdown, OnModuleInit {
company: 1,
location: 1,
twitter_username: 1,
contrubutions_sum: 1,
public_repos: 1,
public_gists: 1,
followers: 1,
Expand Down
1 change: 1 addition & 0 deletions oss-api/src/transformer/transformer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class TransformerService {
company: user.company,
email: user.email,
twitter_username: user.twitter_username,
contributions_sum: user.contributions_sum,
location: user.location,
created_at: user.created_at,
updated_at: user.updated_at,
Expand Down
Loading

0 comments on commit 27664cf

Please sign in to comment.