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

AgentMeta and Prototype Registry refactor #115

Merged
merged 63 commits into from
Oct 4, 2019

Conversation

jcowman2
Copy link
Contributor

Description

Checklist

Change Type

  • Bug Fix
  • New Feature
  • Refactor (changes code but not behavior)
  • Non-code Change (documentation, dependencies, etc.)

Is this a breaking change?

  • No
  • Yes

If yes, describe what exactly this change breaks:

Replaces Agent.id with Agent.meta.

Unit Tests

  • Tests Added
  • Tests Modified
  • No Change

Documentation

  • In-code Docs
  • API Reference
  • Other (Specify: )
  • No Change

Related Issues

Issue Number Action Notes
#104 Partially Implemented
#82 Resolved

BREAKING CHANGE: Eliminates agent.id

re #104
@jcowman2 jcowman2 added this to the Iteration 1 milestone Aug 28, 2019
src/agents/agent-manager.ts Outdated Show resolved Hide resolved
src/agents/agent-meta.ts Show resolved Hide resolved
src/agents/agent.ts Outdated Show resolved Hide resolved
src/agents/agent.ts Show resolved Hide resolved
src/agents/impl/active-agent-proxy.ts Show resolved Hide resolved
src/agents/impl/instance-agents-impl.ts Show resolved Hide resolved
src/agents/impl/instance-agents-impl.ts Outdated Show resolved Hide resolved
const am = this.getAgentManager(agent.meta.id);

if (protoId !== undefined) {
if (am === undefined || am.meta.protoId !== undefined) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this ever fail?

src/agents/impl/instance-agents-impl.ts Outdated Show resolved Hide resolved
src/agents/impl/instance-agents-impl.ts Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Aug 29, 2019

Pull Request Test Coverage Report for Build 378

  • 179 of 179 (100.0%) changed or added relevant lines in 29 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 337: 0.0%
Covered Lines: 1108
Relevant Lines: 1108

💛 - Coveralls

@@ -112,11 +112,21 @@ export class PKProviderImpl<PKClass> implements PKProvider<PKClass> {
return this.lastPK.index();
}

public forkAfterKey(key: PK<PKClass> | FK<PKClass>): PKProvider<PKClass> {
public forkAfterKey(
key: PK<PKClass> | FK<PK<PKClass>>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can this signature be condensed to PK<PKClass>

@jcowman2 jcowman2 merged commit 139235c into stage Oct 4, 2019
@jcowman2 jcowman2 deleted the feat-104/prototype-registry branch October 4, 2019 20:14
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.

None yet

2 participants