Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Conversation

@nklincoln
Copy link
Contributor

Code delivery for #386, provides the ability for a user to delete model and/or script files

Delivers:

  • new "delete confirmation" modal
  • file validation on file selection
  • if file selected that is already in editor, will not reload
  • validation of all files within business network
  • conditioning of ability to deploy business network based on all BN files being valid
  • test addition for new delivered components
  • test extensions for modified components

Design of the fix

Follows user flow of named user story.
Modal confirmation enables deletion of named file within business network.
Validation of all business network files enabled and now all files must validate before enabling deploy

Validation of the fix

manual testing

Automated Tests

Automated tests established for new additions driving expected component actions.

@nklincoln nklincoln requested a review from cazfletch May 17, 2017 12:19
<svg class="ibm-icon" aria-hidden="true">
<use xlink:href="#icon-warn_32"></use>
</svg>
<h1 [innerHTML]="headerMessage"></h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be {{}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tick

<div class="item"><b>{{fileType}}</b></div>
<div class="item"><i>{{fileName}}</i></div>
</section>
<p [innerHTML]="deleteMessage"></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

this should also be {{}}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tick

</section>
</section>
<footer>
<button type="button" class="secondary" (click)="activeModal.close(false)">Cancel</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

you could use activeModal.dismiss() here rather than close

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tick

display: flex;
flex-direction: column;
align-content: flex-start;
margin-left: 2rem;
Copy link
Contributor

@cazfletch cazfletch May 17, 2017

Choose a reason for hiding this comment

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

this should use a variable i think 2rem (32px) is $space-large

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure - the $space items appear to all be in px sizing, but change made

Copy link
Contributor

Choose a reason for hiding this comment

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

they are, they need updating

border-left: solid $first-highlight;

.item{
margin-left: 1rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use a variable too think 1rem (16px) is $space-medium

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [DeleteComponent],
providers: [NgbActiveModal]
Copy link
Contributor

Choose a reason for hiding this comment

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

should NgbActiveModal be mocked or do you use it in the tests?

</svg>
</button>
</div>
<div *ngIf="deletableFile" style="flex-shrink:1;align-self:center; margin-left: auto">
Copy link
Contributor

Choose a reason for hiding this comment

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

the style bits should be in the scss file

Copy link
Contributor

@cazfletch cazfletch left a comment

Choose a reason for hiding this comment

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

Made some comments of things for you to look at

nklincoln and others added 13 commits May 17, 2017 14:26
* Updates for work * Adding Installing Index to ToC * Removing Fabric Composer name * Removing Fabric composer name * Moving images for REST API doc * Fabric Composer Name removal * Fabric Composer name removal * Other name changes (Stack Overflow, GitHub, Rocket.Chat, JavaScript) * wording updates and bug splats * ToC Updates * HLv1 docs updates, couple more bug splats. * Last edit for HLv1 * Whoops, bug splat * Another bug splat... * Quick fixes prereqs navbar * intro diagram fix and bug fixes * Fixes and updates * Rollback optional script for v1.0 * QoL changes and rollback changes - Quickstart * Link fixes * Atom links fix, formatting fix * Odd formatting fix. * Name change and codeblock fix * More odd formatting fixes * Ubuntu root user doc fix + draft of bnd doc changes * update for CLI define + deploy BNA * last bnd update * Events and bug fixes * Last event thing * Updates for #803 and hyperledger-archives#822 * removing unnecessary stuff * Undeploy support #673 * Clarifications on undeploy
@nklincoln nklincoln merged commit 28d3974 into hyperledger-archives:master May 17, 2017
@nklincoln nklincoln deleted the delete-files branch May 17, 2017 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants