Skip to content

Issue 82 - The big documentation run#86

Merged
bapril merged 7 commits into
DEV_1.4.6from
issue_82
Feb 23, 2017
Merged

Issue 82 - The big documentation run#86
bapril merged 7 commits into
DEV_1.4.6from
issue_82

Conversation

@massar
Copy link
Copy Markdown
Member

@massar massar commented Feb 15, 2017

This includes some minor functionname changes & cleanups

This includes some minor functionname changes & cleanups
@massar massar changed the title The big documentation run Issue 82 - The big documentation run Feb 17, 2017
@bapril bapril changed the base branch from master to DEV_1.4.6 February 20, 2017 13:24
Comment thread lib/pw_dict.go Outdated

// Pw_details provides details about te password dictionary checker (used by system_report)
func Pw_details() (msg string) {
fmt.Sprintf("Password Dictionary Checker: Loaded %d Weak Password Dictionaries with %d unique passwords", pw_dicts, len(pw_dict))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

go vet gives:

lib/pw_dict.go:83: result of fmt.Sprintf call not used

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in already filed MR #95

The commit:
2ba715e

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Did a : git cherry-pick 2ba715e

and it is now in this branch too. Closing the #95 MR though, as otherwise it would be a dupe.

Comment thread lib/misc_test.go Outdated
fmt.Printf("Example - took: %s", te)
}

func ExampleTrackTimeDeferred() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lib/misc_test.go:174: ExampleTrackTimeDeferred refers to unknown identifier: TrackTimeDeferred

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Resolved by making it ExampleTrackTime_deferred.

Comment thread lib/struct_test.go Outdated
type Example struct {
ID int `label:"ID" pfset:"nobody" pfget:"user" hint:"The identify of this field"`
AField string `label:"Field" pfset:"user" pfget:"user" hint:"A Field a user can modify"`
AnotherField string `label:"Another pfset:"sysadmin" pfget:"user" hint:"Another Field that only a sysadmin could modify, but any user can read"`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

go vet:
lib/struct_test.go:19: struct field tag label:"Another pfset:"sysadmin" pfget:"user" hint:"Another Field that only a sysadmin could modify, but any user can read" not compatible with reflect.StructTag.Get: bad syntax for struct tag pair
exit status 1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Missing " after Another.

Fixed in commit pushed out; as it is minor that it should not involve any further commits.

Comment thread ui/ui_test.go Outdated
@@ -0,0 +1,33 @@
package pitchforkui

func ExamplePfUI_Page_show() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

go vet

ui/ui_test.go:3: ExamplePfUI_Page_show refers to unknown field or method: PfUI.Page

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'll need to update the call in PfUI from Page_show to PageShow for this to work; which will have global reach throughout all UI code as it is called from everywhere.

We can file a ticket for this, because if we do that that in this commit it will be even dirtier.

Copy link
Copy Markdown
Member Author

@massar massar Feb 21, 2017

Choose a reason for hiding this comment

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

Applied in separate branch (as it requires trident changes and other application changes too):

Commit: cf63c3f

MR that has this: #111

Note that this also needs: tridentli/trident#84

@bapril
Copy link
Copy Markdown
Member

bapril commented Feb 23, 2017

Bypassed the failing test ui/ui_test.go. Now getting failed selenium tests.

Error searching user for nomination. (Attached image).
screen shot 2017-02-22 at 10 12 18 pm

Error viewing e-mail on member profile:
screen shot 2017-02-22 at 10 16 16 pm

@massar
Copy link
Copy Markdown
Member Author

massar commented Feb 23, 2017

Add a pf_82 branch to trident tridentli/trident#85

Note that this also pulls in the Page_show -> PageShow fix so that a circumvention of the 'go vet' tests should not be needed.

This reminds me to setup a silenium test VM so that we can run these tests automatically.

Copy link
Copy Markdown
Member

@bapril bapril left a comment

Choose a reason for hiding this comment

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

Way more code than I'd like in a "doc update". All stuff that needed to get fixed. I'll live with it, passes tests.

@bapril bapril merged commit b3de30e into DEV_1.4.6 Feb 23, 2017
@bapril bapril deleted the issue_82 branch October 3, 2017 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants