Skip to content

Remove temporary aliases when calling resetProfile()#3233

Merged
vadi2 merged 3 commits intoMudlet:developmentfrom
aaronjoslyn:development
Nov 17, 2019
Merged

Remove temporary aliases when calling resetProfile()#3233
vadi2 merged 3 commits intoMudlet:developmentfrom
aaronjoslyn:development

Conversation

@aaronjoslyn
Copy link
Copy Markdown
Contributor

Brief overview of PR changes/additions

This PR causes aliases created with tempAlias to be reset upon calling resetProfile(), similar to tempTrigger, etc.

Motivation for adding to Mudlet

It makes it a lot easier to enable a development flow where your aliases are defined in external source files and required via require/dofile. You can create triggers, aliases, etc. with tempAlias/tempTrigger/etc, and simply call resetProfile when you want to reload changes. Currently this isn't the case, since aliases are not reloaded, causing old aliases to hang around.

Other info (issues closed, discussion etc)

@aaronjoslyn aaronjoslyn requested a review from a team as a code owner November 10, 2019 19:37
@aaronjoslyn aaronjoslyn requested a review from a team November 10, 2019 19:37
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Nov 10, 2019

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Nov 10, 2019

Yeah, this seems like an oversight. Thanks for the fix! Let's wait on the CI to populate the build links to test.

@aaronjoslyn
Copy link
Copy Markdown
Contributor Author

After playing around with it a bit, I noticed I wasn't disabling/cleaning up/re-enabling aliases in the same way as the triggers, etc. I've added that in too.

@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Nov 12, 2019

@aaronjoslyn can you pull in latest development to fix the appveyor build? They changed the environment and the older image we used no longer works - and we've fixed that since.

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

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

Works great! Thanks for the fix, and apologies for the delay.

@vadi2 vadi2 merged commit 1e836fa into Mudlet:development Nov 17, 2019
@vadi2
Copy link
Copy Markdown
Member

vadi2 commented Nov 17, 2019

@aaronjoslyn mind coming by Discord and letting us know how was your experience with contributing? Curious to see if setting up the compile / navigating code was hard or any other remarks :)

dicene pushed a commit to dicene/Mudlet that referenced this pull request Feb 19, 2020
* Remove temporary aliases when calling resetProfile()

* Ensure aliases are disabled, cleaned up and then enabled when resetting profile
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.

2 participants