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

Forslag til refaktorering #250

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

marensofier
Copy link
Collaborator

Laget en egen klasse med det jeg prøvde å skrive om, sånn at ikke det skulle bli borte + vanskelig å se forskjellen.

Prøvde å splitte opp de ulike stegene vil gjør:

  • validere med json-schema
  • kryptere informasjon
  • lage nye branches, eller oppdatere eksisterende
  • lage nye filer, eller oppdatere eksisterende

Mangler i denne PR-en, siden det ble jobbet med parallelt:

  • required approval-biten

Kommenterer der hvor hovedforskjellen er fordi det ble noen formatteringsendringer på grunn av lengde på linjer

@@ -366,7 +394,44 @@ class RiScService(
riScId: String,
content: RiScWrapperObject,
accessTokens: AccessTokens,
): ProcessRiScResultDTO = updateOrCreateRiSc(owner, repository, riScId, content, accessTokens)
): ProcessRiScResultDTO {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Her er det endring;
nå er update og create risc helt separate greier

@@ -375,52 +440,152 @@ class RiScService(
accessTokens: AccessTokens,
): ProcessRiScResultDTO {
val uniqueRiScId = "$filenamePrefix-${RandomStringUtils.randomAlphanumeric(5)}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Samme her, helt separat fra updateRiSc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant